23 lines
441 B
Bash
23 lines
441 B
Bash
|
#!/bin/bash
|
||
|
source ${WORKDIR}/mklive.conf
|
||
|
source $(dirname $0)/functions.sh
|
||
|
|
||
|
echo "Build live"
|
||
|
|
||
|
startstage live
|
||
|
|
||
|
requiredir ${WORKDIR}/LIVE
|
||
|
|
||
|
CHROOT=${WORKDIR}/chroot
|
||
|
|
||
|
#copy kernel and initrd
|
||
|
cp -L $CHROOT/initrd.img ${WORKDIR}/LIVE/
|
||
|
cp -L $CHROOT/vmlinuz ${WORKDIR}/LIVE/
|
||
|
|
||
|
#mksquashfs
|
||
|
[ -e ${WORKDIR}/LIVE/filesystem.squashfs ] && rm ${WORKDIR}/LIVE/filesystem.squashfs
|
||
|
mksquashfs $CHROOT ${WORKDIR}/LIVE/filesystem.squashfs
|
||
|
|
||
|
endstage live
|
||
|
|