diff options
author | Dan McGee <dan@archlinux.org> | 2008-03-27 15:00:12 -0500 |
---|---|---|
committer | Simo Leone <simo@archlinux.org> | 2008-03-27 16:31:57 -0500 |
commit | ec9fdb371bda2c55344dcf2f7f41917305475bbb (patch) | |
tree | ce5aeb63c7af74028a1ab2307526907c853d0ccb | |
parent | 8a198aa131feeb145613b3332f803e3f9cb3f158 (diff) |
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 <dan@archlinux.org>
Signed-off-by: Simo Leone <simo@archlinux.org>
-rwxr-xr-x | mkarchiso | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -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 <archlinux.org>" \ -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: |