mklive/scripts/live.sh

23 lines
441 B
Bash
Raw Normal View History

2018-05-21 12:41:52 +00:00
#!/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