rootfs-block/mount-root.sh: echo fsck return code to

/dev/.initramfs/fsck
master
Harald Hoyer 2010-11-10 20:43:22 +01:00
parent ce51f3be11
commit 3d7c58ca1e
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then
info fsck -T -t noopts=_netdev -A $fsckoptions
out=$(fsck -T -t noopts=_netdev -A $fsckoptions)
export RD_ROOTFS_FSCK=$?
mkdir -p /dev/.initramfs
echo $RD_ROOTFS_FSCK > /dev/.initramfs/fsck
# A return of 4 or higher means there were serious problems.
if [ $RD_ROOTFS_FSCK -gt 3 ]; then