%post --nochroot cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL # only works on x86, x86_64 if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS fi # MontanaLinux stuff HOSTDIR="/root/livecd-creator/MontanaLinux" cd /var/tmp/imgcreate-* cd install_root BUILDDIR=$(pwd) cd / cp -f "$HOSTDIR/.screenrc" "$BUILDDIR/etc/skel/" cp -f "$HOSTDIR/.screenrc" "$BUILDDIR/root/" cp -f "$HOSTDIR/.tmux.conf" "$BUILDDIR/etc/skel/" cp -f "$HOSTDIR/.tmux.conf" "$BUILDDIR/root/" mkdir -p "$BUILDDIR/root/livecd-creator/package-cache" cp -f -r "$HOSTDIR" "$BUILDDIR/root/livecd-creator/" %end