use /usr/local as rw

This commit is contained in:
Harald Hoyer 2018-11-19 15:26:51 +01:00
parent 04b152db13
commit cec1003bfb
2 changed files with 10 additions and 0 deletions

View file

@ -120,6 +120,7 @@ for i in var home cfg; do
fi
done
[ -d /run/initramfs/mnt/local ] && mount -o bind /run/initramfs/mnt/local /sysroot/usr/local
mount -o bind /run/initramfs/mnt/var /sysroot/var
mount -o bind /run/initramfs/mnt/home /sysroot/home
mount -o bind /run/initramfs/mnt/cfg /sysroot/cfg

View file

@ -566,6 +566,15 @@ C /cfg/libvirt - - - - -
EOF
fi
#---------------
# usr/local
mkdir -p "$sysroot"/usr/share/factory/usr/
mv "$sysroot"/usr/local "$sysroot"/usr/share/factory/usr/local
mkdir -p "$sysroot"/usr/local
cat >> "$sysroot"/usr/lib/tmpfiles.d/usrlocal.conf <<EOF
C /usr/local - - - - -
EOF
#---------------
# brlapi
# FIXME: reproducible