From 604b182af5485b0134fbe750948eba57f385d709 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Sat, 28 Jun 2014 00:35:50 -0300 Subject: [PATCH] [archiso] Rename root-image to airootfs Two purposes: * systemd filename friendly: "-" is used for "/" and must be escaped with "\x20" * ISO9660 filename friendly: "-" is replaced with "_" --- archiso/mkarchiso | 54 ++++++------- configs/baseline/aitab | 2 +- configs/baseline/build.sh | 26 +++---- .../releng/{root-image => airootfs}/etc/fstab | 0 .../{root-image => airootfs}/etc/hostname | 0 .../{root-image => airootfs}/etc/locale.conf | 0 .../{root-image => airootfs}/etc/pam.d/su | 0 .../etc/sudoers.d/g_wheel | 0 .../etc/systemd/scripts/choose-mirror | 0 .../etc/systemd/system/choose-mirror.service | 0 .../systemd/system/etc-pacman.d-gnupg.mount | 0 .../getty@tty1.service.d/autologin.conf | 0 .../etc/systemd/system/pacman-init.service | 0 .../etc/udev/rules.d/81-dhcpcd.rules | 0 .../root/.automated_script.sh | 0 .../{root-image => airootfs}/root/.zlogin | 0 .../root/customize_airootfs.sh} | 0 .../{root-image => airootfs}/root/install.txt | 0 configs/releng/aitab | 4 +- configs/releng/build.sh | 76 +++++++++---------- docs/README.build | 2 +- 21 files changed, 82 insertions(+), 82 deletions(-) rename configs/releng/{root-image => airootfs}/etc/fstab (100%) rename configs/releng/{root-image => airootfs}/etc/hostname (100%) rename configs/releng/{root-image => airootfs}/etc/locale.conf (100%) rename configs/releng/{root-image => airootfs}/etc/pam.d/su (100%) rename configs/releng/{root-image => airootfs}/etc/sudoers.d/g_wheel (100%) rename configs/releng/{root-image => airootfs}/etc/systemd/scripts/choose-mirror (100%) rename configs/releng/{root-image => airootfs}/etc/systemd/system/choose-mirror.service (100%) rename configs/releng/{root-image => airootfs}/etc/systemd/system/etc-pacman.d-gnupg.mount (100%) rename configs/releng/{root-image => airootfs}/etc/systemd/system/getty@tty1.service.d/autologin.conf (100%) rename configs/releng/{root-image => airootfs}/etc/systemd/system/pacman-init.service (100%) rename configs/releng/{root-image => airootfs}/etc/udev/rules.d/81-dhcpcd.rules (100%) rename configs/releng/{root-image => airootfs}/root/.automated_script.sh (100%) rename configs/releng/{root-image => airootfs}/root/.zlogin (100%) rename configs/releng/{root-image/root/customize_root_image.sh => airootfs/root/customize_airootfs.sh} (100%) rename configs/releng/{root-image => airootfs}/root/install.txt (100%) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 9655167..26a82ee 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -51,14 +51,14 @@ _chroot_init() { if [[ -f "${work_dir}/mkarchiso.init" ]]; then _msg_info "Initial enviroment already installed, skipping." else - mkdir -p ${work_dir}/root-image + mkdir -p ${work_dir}/airootfs _pacman "base syslinux" : > "${work_dir}/mkarchiso.init" fi } _chroot_run() { - eval arch-chroot ${work_dir}/root-image "${run_cmd}" + eval arch-chroot ${work_dir}/airootfs "${run_cmd}" } # Mount a filesystem (trap signals in case of error for unmounting it @@ -116,7 +116,7 @@ _usage () echo "usage ${app_name} [options] command " echo " general options:" echo " -p PACKAGE(S) Package(s) to install, can be used multiple times" - echo " -r Run inside root-image" + echo " -r Run inside airootfs" echo " -C Config file for pacman." echo " Default: '${pacman_conf}'" echo " -L