diff --git a/debian/chroot.install b/debian/chroot.install index 2550d3b..72eb93e 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -196,8 +196,9 @@ grep swap /target/etc/fstab || echo "/dev/mapper/${vgname}-swap swap swap ### Add extra tmpfs mount point grep "/var/tmp" /target/etc/fstab || echo "/tmp /var/tmp none rw,bind,size=1M,mode=1777 0 0" >> /target/etc/fstab -### Remove all occurrences to /target -sed -i 's;/target;;g' /target/etc/fstab +### Remove all occurrences to target and avoid double slashs +sed -i 's;target;;g' /target/etc/fstab +sed -i 's;//;;g' /target/etc/fstab ## }}} ## Network {{{ net_device=$(ip r | grep "^default" | head -1 | cut -d" " -f5)