From ec9fdb371bda2c55344dcf2f7f41917305475bbb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 27 Mar 2008 15:00:12 -0500 Subject: Cleanups and bugfixes * /etc/copyright was all sorts of messed up, it was looked for on the host system instead of the ISO, etc. Just kill it. * Remove extra default-config code. We want to implement it as an overlay and not copy it into our pristine ISO root. Signed-off-by: Dan McGee Signed-off-by: Simo Leone --- mkarchiso | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'mkarchiso') diff --git a/mkarchiso b/mkarchiso index 7f2e375..b8427e6 100755 --- a/mkarchiso +++ b/mkarchiso @@ -130,23 +130,12 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then _pacman "${pkg}" done - echo "Updating kernel module dependancies" + echo "Updating kernel module dependencies" kernelver=$(_kversion) depmod -a -b "${instroot}" -v "${kernelver}" -F "${instroot}/boot/System.map26" >/dev/null # remove the initcpio images that were generated for the host system find "${instroot}/boot" -name *.img -delete - echo "Applying default configuration for the Arch ISO" - cp -ra --remove-destination --no-preserve=ownership ${DEF_CONFIG_DIR}/* "${instroot}" - - echo "Copyright (C) 2007, Arch Linux (Judd Vinet)" > "${instroot}/etc/copyright" - - echo "Creating initial device nodes" - rm -f "${instroot}/dev/console" "${instroot}/dev/null" "${instroot}/dev/zero" - mknod -m 644 "${instroot}/dev/console" c 5 1 - mknod -m 666 "${instroot}/dev/null" c 1 3 - mknod -m 666 "${instroot}/dev/zero" c 1 5 - echo "Creating default home directory" install -d -o1000 -g100 -m0755 "${instroot}/home/arch" @@ -163,9 +152,7 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then done # pacman DBs are big, delete all sync dbs - for d in ${instroot}/var/lib/pacman/*; do - [ "$(basename ${d})" != "local" ] && rm -rf "${d}" - done + rm -rf "${instroot}/var/lib/pacman/sync" # copy over kernel and grub configs for boot if [ -e "${instroot}/boot" -a -e "${DEF_CONFIG_DIR}/boot" ]; then @@ -258,7 +245,7 @@ if [ "${command_name}" = "iso" -o "${command_name}" = "all" ]; then mkisofs ${qflag} -r -l -b "boot/grub/stage2_eltorito" -uid 0 -gid 0 -no-emul-boot \ -boot-load-size 4 -boot-info-table -publisher "Arch Linux " \ -input-charset=UTF-8 -p "prepared by $NAME" -A "Arch Linux Live/Rescue CD" \ - -copyright /etc/copyright -o "${isoname}" "${isoroot}" + -o "${isoname}" "${isoroot}" fi # vim:ts=4:sw=4:et: -- cgit v1.2.3-54-g00ecf