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:
85de3d2
)
rootfs-block/mount-root.sh: correctly printf to fstab
author
Harald Hoyer
<harald@redhat.com>
Wed, 10 Nov 2010 19:11:31 +0000
(20:11 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 10 Nov 2010 19:11:31 +0000
(20:11 +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
00cf475
..
bc17848
100755
(executable)
--- a/
modules.d/95rootfs-block/mount-root.sh
+++ b/
modules.d/95rootfs-block/mount-root.sh
@@
-109,7
+109,7
@@
if [ -n "$root" -a -z "${root%%block:*}" ]; then
# backslashes are treated as escape character in fstab
esc_root=$(echo ${root#block:} | sed 's,\\,\\\\,g')
- printf
"%s $NEWROOT $rootfs ${rflags},${rootopts} 1 1\n" "$esc_root"
> /etc/fstab
+ printf
'%s %s %s %s,%s 1 1 \n' "$esc_root" "$NEWROOT" "$rootfs" "$rflags" "$rootopts"
> /etc/fstab
if [ -z "$fastboot" -a "$READONLY" != "yes" ]; then
info "Checking filesystems"