Revert "initramfs: use `mount.zfs` instead of `mount`"
This broke mounting of snapshots on / for users. See https://github.com/openzfs/zfs/issues/9461#issuecomment-1376162949 for more context. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #14908
This commit is contained in:
parent
928c81f4df
commit
2810dda80b
|
@ -344,7 +344,7 @@ mount_fs()
|
||||||
|
|
||||||
# Need the _original_ datasets mountpoint!
|
# Need the _original_ datasets mountpoint!
|
||||||
mountpoint=$(get_fs_value "$fs" mountpoint)
|
mountpoint=$(get_fs_value "$fs" mountpoint)
|
||||||
ZFS_CMD="mount.zfs -o zfsutil"
|
ZFS_CMD="mount -o zfsutil -t zfs"
|
||||||
if [ "$mountpoint" = "legacy" ] || [ "$mountpoint" = "none" ]; then
|
if [ "$mountpoint" = "legacy" ] || [ "$mountpoint" = "none" ]; then
|
||||||
# Can't use the mountpoint property. Might be one of our
|
# Can't use the mountpoint property. Might be one of our
|
||||||
# clones. Check the 'org.zol:mountpoint' property set in
|
# clones. Check the 'org.zol:mountpoint' property set in
|
||||||
|
@ -361,7 +361,7 @@ mount_fs()
|
||||||
fi
|
fi
|
||||||
# Don't use mount.zfs -o zfsutils for legacy mountpoint
|
# Don't use mount.zfs -o zfsutils for legacy mountpoint
|
||||||
if [ "$mountpoint" = "legacy" ]; then
|
if [ "$mountpoint" = "legacy" ]; then
|
||||||
ZFS_CMD="mount.zfs"
|
ZFS_CMD="mount -t zfs"
|
||||||
fi
|
fi
|
||||||
# Last hail-mary: Hope 'rootmnt' is set!
|
# Last hail-mary: Hope 'rootmnt' is set!
|
||||||
mountpoint=""
|
mountpoint=""
|
||||||
|
@ -944,7 +944,7 @@ mountroot()
|
||||||
echo " not specified on the kernel command line."
|
echo " not specified on the kernel command line."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Manually mount the root filesystem on $rootmnt and then exit."
|
echo "Manually mount the root filesystem on $rootmnt and then exit."
|
||||||
echo "Hint: Try: mount.zfs -o zfsutil ${ZFS_RPOOL-rpool}/ROOT/system $rootmnt"
|
echo "Hint: Try: mount -o zfsutil -t zfs ${ZFS_RPOOL-rpool}/ROOT/system $rootmnt"
|
||||||
shell
|
shell
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue