From 4cba811f6c3a897022c6fdacbe30ae941dd6597a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 10 Nov 2010 20:11:31 +0100 Subject: [PATCH] rootfs-block/mount-root.sh: correctly printf to fstab --- modules.d/95rootfs-block/mount-root.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index 00cf475..bc17848 100755 --- 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" -- 2.7.4