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 | |
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')
-rwxr-xr-x | scripts/build/binary_grub | 5 | ||||
-rwxr-xr-x | scripts/build/binary_grub2 | 5 | ||||
-rwxr-xr-x | scripts/build/chroot_hacks | 41 | ||||
-rwxr-xr-x | scripts/build/chroot_hosts | 3 | ||||
-rwxr-xr-x | scripts/build/config | 12 |
5 files changed, 2 insertions, 64 deletions
diff --git a/scripts/build/binary_grub b/scripts/build/binary_grub index 1dcae2580..0064c3a36 100755 --- a/scripts/build/binary_grub +++ b/scripts/build/binary_grub @@ -175,11 +175,6 @@ then exit 1 fi -if [ "${LB_EXPOSED_ROOT}" != "false" ] -then - LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE} exposedroot" -fi - LB_BOOTAPPEND_LIVE="$(echo ${LB_BOOTAPPEND_LIVE} | sed -e 's| ||')" # Assembling kernel configuration diff --git a/scripts/build/binary_grub2 b/scripts/build/binary_grub2 index be8ef7fbc..555a604e3 100755 --- a/scripts/build/binary_grub2 +++ b/scripts/build/binary_grub2 @@ -149,11 +149,6 @@ then exit 1 fi -if [ "${LB_EXPOSED_ROOT}" != "false" ] -then - LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE} exposedroot" -fi - LB_BOOTAPPEND_LIVE="$(echo ${LB_BOOTAPPEND_LIVE} | sed -e 's| ||')" # Assembling kernel configuration 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}" diff --git a/scripts/build/chroot_hosts b/scripts/build/chroot_hosts index 399d11017..32453aed3 100755 --- a/scripts/build/chroot_hosts +++ b/scripts/build/chroot_hosts @@ -83,8 +83,7 @@ EOF # Restore hosts file mv chroot/etc/hosts.orig chroot/etc/hosts else - # Blank out hosts file, don't remove in case - # its a symlink, as in the case of exposedroot mode + # Blank out hosts file, don't remove in case its a symlink Truncate chroot/etc/hosts fi diff --git a/scripts/build/config b/scripts/build/config index a5547450e..5a8203fd8 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -118,7 +118,6 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [--templates PATH]\n\ \t [--updates true|false]\n\ \t [--backports true|false]\n\ -\t [--exposed-root true|false]\n\ \t [--verbose]\n\ \t [--loadlin true|false]\n\ \t [--win32-loader true|false]\n\ @@ -138,7 +137,7 @@ Local_arguments () parent-mirror-binary-security:,parent-mirror-debian-installer:, mirror-bootstrap:,mirror-chroot:,mirror-chroot-security:,mirror-binary:, mirror-binary-security:,mirror-debian-installer:, - archive-areas:,parent-archive-areas:,chroot-filesystem:,exposed-root:, + archive-areas:,parent-archive-areas:,chroot-filesystem:, gzip-options:,hooks:,image-name:,interactive:,keyring-packages:,linux-flavours:,linux-packages:, security:,updates:,backports:,binary-filesystem:,binary-images:, apt-indices:,bootappend-install:,bootappend-live:,bootappend-live-failsafe:,bootloader:,checksums:,compression:,config:,zsync:,build-with-chroot:, @@ -439,11 +438,6 @@ Local_arguments () shift 2 ;; - --exposed-root) - LB_EXPOSED_ROOT="${2}" - shift 2 - ;; - --gzip-options) GZIP_OPTIONS="${2}" shift 2 @@ -1133,10 +1127,6 @@ LB_CHROOT_FILESYSTEM="${LB_CHROOT_FILESYSTEM}" # (Default: ${LB_UNION_FILESYSTEM}) LB_UNION_FILESYSTEM="${LB_UNION_FILESYSTEM}" -# \$LB_EXPOSED_ROOT: expose root as read only -# (Default: ${LB_EXPOSED_ROOT}) -LB_EXPOSED_ROOT="${LB_EXPOSED_ROOT}" - # \$LB_HOOKS: set hook commands # (Default: empty) LB_HOOKS="${LB_HOOKS}" |