diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-10-23 10:47:13 +0200 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-10-23 10:47:48 +0200 |
commit | 955175ac4b9acb06101a9ec7a0b3b41d4f17087f (patch) | |
tree | fd0d1e02033b04dcee7eb6fda7bbbc26e820a6d5 /scripts/build/chroot_hacks | |
parent | 5e2758b4c0b389fbff5d693bccaaff9f2b3bc642 (diff) | |
download | vyos-live-build-955175ac4b9acb06101a9ec7a0b3b41d4f17087f.tar.gz vyos-live-build-955175ac4b9acb06101a9ec7a0b3b41d4f17087f.zip |
Dropping incomplete and not really supported exposed root mode.
This might come back in future if there's demand for it
and the base is sufficiently cleaned up first.
Diffstat (limited to 'scripts/build/chroot_hacks')
-rwxr-xr-x | scripts/build/chroot_hacks | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/build/chroot_hacks b/scripts/build/chroot_hacks index b842c0e4c..72b7d2baa 100755 --- a/scripts/build/chroot_hacks +++ b/scripts/build/chroot_hacks @@ -126,47 +126,6 @@ then touch chroot/etc/fstab fi -if [ "${LB_EXPOSED_ROOT}" = "true" ] -then - # Make sure RW dirs exist so that the initramfs script has - # a directory in which to bind the tmpfs filesystems - COW_DIRECTORIES="/home /live /tmp /var/lib/live /var/lock /var/log /var/run /var/tmp /var/spool" - - for DIRECTORY in ${COW_DIRECTORIES} - do - mkdir -p chroot/"${DIRECTORY}" - done - - # Config files which need to be RW - COW_FILES="/etc/adjtime /etc/fstab /etc/hostname /etc/hosts /etc/live.conf /etc/network/interfaces /etc/resolv.conf /etc/udev/rules.d/*persistent-net.rules /etc/udev/rules.d/*persistent-cd.rules /etc/X11/xorg.conf" - - # Where we will store RW config files - RW_DIRECTORY="/var/lib/live" - - for FILE in ${COW_FILES} - do - DIRECTORY="$(dirname ${FILE})" - FILE="$(basename ${FILE})" - RELATIVE_PATH="$(echo ${DIRECTORY} | sed 's|[^/]\+|..|g; s|^/||g')" - - # Touch files in case they don't yet exist - mkdir -p chroot/${DIRECTORY} - touch chroot/${DIRECTORY}/${FILE} - - # Move files to the read-write directory - mkdir -p chroot/${RW_DIRECTORY}/${DIRECTORY} - mv chroot/${DIRECTORY}/${FILE} chroot/${RW_DIRECTORY}/${DIRECTORY} - - # Create a symbolic link to RW config file - ln -s ${RELATIVE_PATH}/${RW_DIRECTORY}/${DIRECTORY}/${FILE} chroot/${DIRECTORY}/${FILE} - done - - # Mount doesn't write to a symlink so use /proc/mounts instead, - # see debian bug #154438 for more info - rm -f chroot/etc/mtab - ln -s /proc/mounts chroot/etc/mtab -fi - if [ "${LB_SWAP_FILE_PATH}" ]; then dd if=/dev/zero of="chroot/${LB_SWAP_FILE_PATH}" bs=1024k count="${LB_SWAP_FILE_SIZE}" mkswap "chroot/${LB_SWAP_FILE_PATH}" |