projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4f88b8
)
rootfs-block/mount-root.sh: remove $NEWROOT/{.autofsck,forcefsck} if possible
author
Harald Hoyer
<harald@redhat.com>
Wed, 10 Nov 2010 19:45:12 +0000
(20:45 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 10 Nov 2010 19:47:15 +0000
(20:47 +0100)
modules.d/95rootfs-block/mount-root.sh
patch
|
blob
|
history
diff --git
a/modules.d/95rootfs-block/mount-root.sh
b/modules.d/95rootfs-block/mount-root.sh
index
baa1ce5
..
93c5c42
100755
(executable)
--- a/
modules.d/95rootfs-block/mount-root.sh
+++ b/
modules.d/95rootfs-block/mount-root.sh
@@
-137,4
+137,6
@@
if [ -n "$root" -a -z "${root%%block:*}" ]; then
info "Remounting ${root#block:} with -o ${rflags},${rootopts}"
mount -t "$rootfs" -o "$rflags","$rootopts" \
"${root#block:}" "$NEWROOT" 2>&1 | vinfo
+
+ [ -f "$NEWROOT"/forcefsck ] && rm -f "$NEWROOT"/forcefsck 2>/dev/null
fi