rootfs-block/mount-root.sh: correctly printf to fstab

master
Harald Hoyer 2010-11-10 20:11:31 +01:00
parent 85de3d281a
commit 4cba811f6c
1 changed files with 1 additions and 1 deletions

View File

@ -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"