From 921202e371b8d4e272c309cacf123927dd375e07 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Mon, 15 May 2017 16:40:31 +0100 Subject: [PATCH] stage4: add /etc/mtab symlink --- export-image/04-finalise/01-run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index 2de42ca..cc69dec 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -35,6 +35,8 @@ rm -f ${ROOTFS_DIR}/var/lib/dbus/machine-id true > ${ROOTFS_DIR}/etc/machine-id +ln -nsf /proc/mounts ${ROOTFS_DIR}/etc/mtab + for _FILE in $(find ${ROOTFS_DIR}/var/log/ -type f); do true > ${_FILE} done