stage-1-init.sh: do not check mounted filesystems (#45891)
fsck of a mounted filesystems fails with error code 8 "Operational error" and halts the boot processing
This commit is contained in:
parent
da3326902a
commit
2c072b9ddc
@ -263,6 +263,13 @@ checkFS() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Device might be already mounted manually
|
||||||
|
# e.g. NBD-device or the host filesystem of the file which contains encrypted root fs
|
||||||
|
if mount | grep -q "^$device on "; then
|
||||||
|
echo "skip checking already mounted $device"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Optionally, skip fsck on journaling filesystems. This option is
|
# Optionally, skip fsck on journaling filesystems. This option is
|
||||||
# a hack - it's mostly because e2fsck on ext3 takes much longer to
|
# a hack - it's mostly because e2fsck on ext3 takes much longer to
|
||||||
# recover the journal than the ext3 implementation in the kernel
|
# recover the journal than the ext3 implementation in the kernel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user