diff --git a/build.sh b/build.sh index 16d68f2..05f789d 100755 --- a/build.sh +++ b/build.sh @@ -158,6 +158,11 @@ mount --bind /dev/pts "$ROOTFS_DIR/dev/pts" mount -t proc /proc "$ROOTFS_DIR/proc" mount --bind /sys "$ROOTFS_DIR/sys" +## +# Add /etc/mtab +# +ln -nsf /proc/mounts "$ROOTFS_DIR/etc/mtab" + ## # Prevent services to start after package installation in chroot environment. # @@ -411,8 +416,6 @@ rm -f "$MOUNT_DIR/var/lib/dpkg/*-old" rm -f "$MOUNT_DIR/usr/share/icons/*/icon-theme.cache" -ln -nsf /proc/mounts "$MOUNT_DIR/etc/mtab" - for _FILE in $(find "$MOUNT_DIR/var/log/" -type f); do true > "$_FILE" done