export squashfs instead of ISO for now
This commit is contained in:
@@ -144,7 +144,7 @@ run_stage() {
|
||||
unmount "${WORK_DIR}/${STAGE}"
|
||||
|
||||
if [ ! -f SKIP_IMAGES ]; then
|
||||
if [ -f "${STAGE_DIR}/EXPORT_IMAGE" ] || [ -f "${STAGE_DIR}/EXPORT_ISO" ]; then
|
||||
if [ -f "${STAGE_DIR}/EXPORT_IMAGE" ] || [ -f "${STAGE_DIR}/EXPORT_ISO" ] || [ -f "${STAGE_DIR}/EXPORT_SQUASHFS" ]; then
|
||||
EXPORT_DIRS="${EXPORT_DIRS} ${STAGE_DIR}"
|
||||
fi
|
||||
fi
|
||||
@@ -361,6 +361,10 @@ for EXPORT_DIR in ${EXPORT_DIRS}; do
|
||||
STAGE_DIR="${BASE_DIR}/export-image"
|
||||
run_stage
|
||||
fi
|
||||
if [ -e "${EXPORT_DIR}/EXPORT_SQUASHFS" ]; then
|
||||
STAGE_DIR="${BASE_DIR}/export-squashfs"
|
||||
run_stage
|
||||
fi
|
||||
if [ "${USE_QEMU}" != "1" ]; then
|
||||
if [ -e "${EXPORT_DIR}/EXPORT_NOOBS" ]; then
|
||||
# shellcheck source=/dev/null
|
||||
|
||||
@@ -64,12 +64,12 @@ insmod all_video
|
||||
insmod gfxterm
|
||||
|
||||
menuentry "ChillcraftOS Live" {
|
||||
linux /boot/vmlinuz boot=live components quiet splash
|
||||
linux /boot/vmlinuz boot=live components live-config.nocomponents quiet splash
|
||||
initrd /boot/initrd.img
|
||||
}
|
||||
|
||||
menuentry "ChillcraftOS Live (safe mode)" {
|
||||
linux /boot/vmlinuz boot=live components nomodeset
|
||||
linux /boot/vmlinuz boot=live components live-config.nocomponents nomodeset
|
||||
initrd /boot/initrd.img
|
||||
}
|
||||
GRUBEOF
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
SQUASHFS_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.squashfs"
|
||||
FINAL_SQUASHFS_FILE="${DEPLOY_DIR}/${ARCHIVE_FILENAME}${IMG_SUFFIX}.squashfs"
|
||||
|
||||
mksquashfs "${ROOTFS_DIR}" "${SQUASHFS_FILE}" \
|
||||
-comp xz \
|
||||
-noappend \
|
||||
-e boot/efi \
|
||||
-e proc \
|
||||
-e sys \
|
||||
-e dev \
|
||||
-e tmp \
|
||||
-e run
|
||||
|
||||
mkdir -p "${DEPLOY_DIR}"
|
||||
rm -f "${FINAL_SQUASHFS_FILE}"
|
||||
cp "${SQUASHFS_FILE}" "${FINAL_SQUASHFS_FILE}"
|
||||
echo "Squashfs created at ${FINAL_SQUASHFS_FILE}"
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
rm -rf "${ROOTFS_DIR}"
|
||||
mkdir -p "${ROOTFS_DIR}"
|
||||
|
||||
rsync -aHAXx --exclude /var/cache/apt/archives "${EXPORT_ROOTFS_DIR}/" "${ROOTFS_DIR}/"
|
||||
@@ -3,3 +3,5 @@ grub-efi-amd64
|
||||
grub-efi-amd64-bin
|
||||
live-boot
|
||||
live-boot-initramfs-tools
|
||||
live-config
|
||||
live-config-systemd
|
||||
|
||||
Reference in New Issue
Block a user