mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Change /etc/mtab to /proc/self/mounts
Fix misleading error message: "The /dev/zfs device is missing and must be created.", if /etc/mtab is missing. Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com> Closes #4680 Closes #5029
This commit is contained in:
committed by
Brian Behlendorf
parent
25e2ab16be
commit
792517389f
+5
-1
@@ -185,7 +185,11 @@ CHECKSUM_BEFORE=$(sha256sum -b "$PAYLOAD")
|
||||
#
|
||||
# TX_WRITE (small file with ordering)
|
||||
#
|
||||
cp /etc/mtab $ROOT/small_file
|
||||
if is_linux; then
|
||||
cp /proc/self/mounts $ROOT/small_file
|
||||
else
|
||||
cp /etc/mtab $ROOT/small_file
|
||||
fi
|
||||
cp /etc/profile $ROOT/small_file
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user