2007-09-23 08:04:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# lh_source(1) - building the source images
|
|
|
|
|
|
|
|
# Source common functions
|
|
|
|
for FUNCTION in /usr/share/live-helper/functions/*.sh
|
|
|
|
do
|
|
|
|
. ${FUNCTION}
|
|
|
|
done
|
|
|
|
|
|
|
|
# Reading configuration files
|
|
|
|
Read_conffile config/common
|
|
|
|
Read_conffile config/image
|
|
|
|
Set_defaults
|
|
|
|
|
|
|
|
# Enabling network in chroot
|
|
|
|
lh_chroot_hosts install
|
|
|
|
lh_chroot_resolv install
|
|
|
|
lh_chroot_sources install
|
|
|
|
|
|
|
|
# Preparing images
|
2007-09-23 08:04:47 +00:00
|
|
|
lh_source_config
|
2007-09-23 08:04:46 +00:00
|
|
|
lh_source_download
|
|
|
|
|
|
|
|
# Building images
|
|
|
|
lh_source_generic
|
|
|
|
lh_source_iso
|
|
|
|
lh_source_net
|
|
|
|
lh_source_usb
|
|
|
|
|
|
|
|
# Deconfiguring chroot
|
2007-09-23 08:04:47 +00:00
|
|
|
rm -f .stage/chroot_sources
|
2007-09-23 08:04:46 +00:00
|
|
|
lh_chroot_resolv remove
|
|
|
|
lh_chroot_hosts remove
|