From 05a3de15ca61814e495fa58f3c74e14234de2b3f Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 4 Apr 2019 00:23:01 +0200 Subject: [PATCH] =?UTF-8?q?Chroot:=20ensure=20to=20have=20a=20mountpoint?= =?UTF-8?q?=20for=20the=20root=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/chroot.install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)