2018-05-21 12:41:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
source ${WORKDIR}/mklive.conf
|
|
|
|
source $(dirname $0)/functions.sh
|
|
|
|
|
2018-05-31 11:01:20 +00:00
|
|
|
einfo "Packageing live system"
|
2018-05-21 12:41:52 +00:00
|
|
|
|
|
|
|
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
|
2018-05-31 11:01:20 +00:00
|
|
|
eok "Done"
|