]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
rootfs-block/mount-root.sh: echo fsck return code to
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:43:22 +0000 (20:43 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Nov 2010 19:43:22 +0000 (20:43 +0100)
/dev/.initramfs/fsck

modules.d/95rootfs-block/mount-root.sh

index b242acff523a9a29452f094310809ad30fbe8082..f56fbed180191617e7e4adc1130a46cd8eb85c1c 100755 (executable)
@@ -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