diff options
author | Simo Leone <simo@archlinux.org> | 2007-10-23 23:22:17 -0500 |
---|---|---|
committer | Simo Leone <simo@archlinux.org> | 2007-10-24 02:05:32 -0500 |
commit | 34e1d6b5dc00f174b8e4ef41c46960ccdf2a8a0c (patch) | |
tree | 6da8f2897cdf3531aef4d64e10539d8faa95d8cd /mkarchiso | |
parent | 0dfc0a36ca5f90bd824ad2abbff5b987d8bed563 (diff) | |
download | archiso32-34e1d6b5dc00f174b8e4ef41c46960ccdf2a8a0c.tar.xz |
Make default-config an overlay
This allows the root image to remain a [mostly] pristine
image, and turns default liveCD configurations into an
overlay, rather than copying them into the root image.
Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'mkarchiso')
-rwxr-xr-x | mkarchiso | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -167,15 +167,26 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then [ "$(basename ${d})" != "local" ] && rm -rf "${d}" done - if [ -e "${instroot}/boot" ]; then + # copy over kernel and grub configs for boot + if [ -e "${instroot}/boot" -a -e "${DEF_CONFIG_DIR}/boot" ]; then rm -rf "${isoroot}/boot" - mv "${instroot}/boot" "${isoroot}" + cp -r "${instroot}/boot" "${isoroot}" + cp -rf "${DEF_CONFIG_DIR}/boot" "${isoroot}" fi # TODO: this might belong somewhere else + mkdir -p "${isoroot}/addons" if [ -d "${ADDON_DIR}" ]; then echo "Copying addons from ${ADDON_DIR}..." - cp -r ${ADDON_DIR} ${isoroot}/addons + cp -r ${ADDON_DIR}/* "${isoroot}/addons" + fi + + # always make an addon out of DEF_CONFIG_DIR + echo "Creating default-config addon..." + if [ "${QUIET}" = "y" ]; then + mksquashfs "${DEF_CONFIG_DIR}" "${isoroot}/addons/default-config.sqfs" >/dev/null + else + mksquashfs "${DEF_CONFIG_DIR}" "${isoroot}/addons/default-config.sqfs" fi fi |