summaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-02 02:59:32 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-02 02:59:32 -0500
commitfad98c513e39ac4ebf0e08d16e9da9dd06934364 (patch)
tree332ae65de8320f072d899f2de1b90cea24c3d483 /scripts/install
parent9cd1c2f0b577836043b25dfab4d27f03cf587b83 (diff)
downloadvyatta-cfg-system-fad98c513e39ac4ebf0e08d16e9da9dd06934364.tar.gz
vyatta-cfg-system-fad98c513e39ac4ebf0e08d16e9da9dd06934364.zip
Do not create fstab file for union install, this conficts with systemd.
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/install-postinst-new11
1 files changed, 1 insertions, 10 deletions
diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new
index 11cf788e..589a04a8 100755
--- a/scripts/install/install-postinst-new
+++ b/scripts/install/install-postinst-new
@@ -259,16 +259,7 @@ if [ -f "$MDADM_CONFIG_FILE" ]; then
fi
fi
-if [ "$INSTALL_TYPE" == 'union' ]; then
- # make /var/run tmpfs
- pi_fstab=$INST_ROOT/etc/fstab
- if ! grep -q 'tmpfs /var/run ' $pi_fstab >&/dev/null; then
- # replace the fstab. the default one has header that will cause
- # it to be wiped out on live boot.
- echo 'tmpfs /var/run tmpfs nosuid,nodev 0 0' >$pi_fstab
- fi
-else
- # not passing the write root to postinst (only needed for union)
+if [ "$INSTALL_TYPE" != 'union' ]; then
WRITE_ROOT=''
fi