86 |
if [[ -n ${packages} ]] |
if [[ -n ${packages} ]] |
87 |
then |
then |
88 |
:> ${CDCHROOTDIR}/.installrc |
:> ${CDCHROOTDIR}/.installrc |
89 |
|
|
90 |
|
# respect proxies |
91 |
|
[[ -n ${http_proxy} ]] && add_initrc "export http_proxy=${http_proxy}" |
92 |
|
[[ -n ${ftp_proxy} ]] && add_initrc "export ftp_proxy=${ftp_proxy}" |
93 |
|
[[ -n ${no_proxy} ]] && add_initrc "export no_proxy=${no_proxy}" |
94 |
|
|
95 |
local i |
local i |
96 |
for i in ${packages} |
for i in ${packages} |
97 |
do |
do |
284 |
HOME=/root \ |
HOME=/root \ |
285 |
TERM=$TERM PS1='\u:\w\$ ' \ |
TERM=$TERM PS1='\u:\w\$ ' \ |
286 |
PATH=/bin:/usr/bin:/sbin:/usr/sbin \ |
PATH=/bin:/usr/bin:/sbin:/usr/sbin \ |
287 |
|
http_proxy=${http_proxy} \ |
288 |
|
ftp_proxy=${ftp_proxy} \ |
289 |
|
no_proxy=${no_proxy} \ |
290 |
/bin/bash -i |
/bin/bash -i |
291 |
} |
} |
292 |
|
|
303 |
echo " isogen - generate the final livecd iso image" |
echo " isogen - generate the final livecd iso image" |
304 |
echo " dvdgen - same as isogen but creates a dvd-image" |
echo " dvdgen - same as isogen but creates a dvd-image" |
305 |
echo " all - runs all tasks to get a livecd from zero" |
echo " all - runs all tasks to get a livecd from zero" |
306 |
|
echo " enter - enters the rootfs of a livecd" |
307 |
echo |
echo |
308 |
echo " for example '$(basename $0) all default'" |
echo " for example '$(basename $0) all default'" |
309 |
echo " creates a livecd using the default profile." |
echo " creates a livecd using the default profile." |
334 |
generate_iso |
generate_iso |
335 |
fi |
fi |
336 |
;; |
;; |
337 |
|
enter) enter_livecd ;; |
338 |
*|'') usage;; |
*|'') usage;; |
339 |
esac |
esac |