diff options
author | Mark Riedesel <mark@klowner.com> | 2016-09-17 10:46:03 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-12-24 13:05:24 +0000 |
commit | be20737c8c6ca8b4ba94302f6b6c9725bc98565d (patch) | |
tree | a292a95335041a7f5936b4d38e62f016a8f0b839 /initramfs-init.in | |
parent | 92801060dccf632c827867eb361396646e04ae99 (diff) | |
download | mkinitfs-be20737c8c6ca8b4ba94302f6b6c9725bc98565d.tar.bz2 mkinitfs-be20737c8c6ca8b4ba94302f6b6c9725bc98565d.tar.xz |
add zpool import capability
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-x | initramfs-init.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in index 64b1b5b..24a25c9 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -363,6 +363,11 @@ if [ -n "$KOPT_nbd" ]; then setup_nbd || echo "Failed to setup nbd device." fi +if [ "$KOPT_rootfstype" = "zfs" ]; then + # zpool reports /dev/zfs missing if it can't read /etc/mtab + ln -s /proc/mounts /etc/mtab +fi + # check if root=... was set if [ -n "$KOPT_root" ]; then if [ "$SINGLEMODE" = "yes" ]; then |