Initial booster test
Some checks failed
Release Nest amd64-v3 ISO / build (push) Failing after 5m38s
Some checks failed
Release Nest amd64-v3 ISO / build (push) Failing after 5m38s
This commit is contained in:
parent
2c5014b07b
commit
99d329a769
2
.github/release-nest-v3-iso
vendored
2
.github/release-nest-v3-iso
vendored
@ -1 +1 @@
|
||||
2
|
||||
3
|
3
build.sh
3
build.sh
@ -61,7 +61,8 @@ mksquashfs \
|
||||
# Copy kernel to refind
|
||||
mkdir -p ./data/refind/EFI
|
||||
cp -vf "$ROOTFS_PATH/boot"/vmlinuz-"$ISO_KERNEL" "./data/refind/EFI/vmlinuz"
|
||||
cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL" "./data/refind/EFI/initrd"
|
||||
#cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL" "./data/refind/EFI/initrd"
|
||||
cp -vf "$ROOTFS_PATH/boot"/booster.img-"$ISO_KERNEL" "./data/refind/EFI/initrd"
|
||||
|
||||
EFI_BOOT_IMAGE_SIZE=$(($(du -s -B1048576 ./data/refind | cut -f1) + 10))
|
||||
EFI_BOOT_IMAGE="$LIVE_BOOT_PATH/efiboot.img"
|
||||
|
@ -24,7 +24,6 @@ apt-get full-upgrade --yes --option Dpkg::Options::="--force-confnew" --option D
|
||||
# Install Absolute Live Boot Basics
|
||||
|
||||
apt-get install --yes --option Dpkg::Options::="--force-confnew" --option Dpkg::Options::="--force-overwrite" --no-install-recommends \
|
||||
live-boot \
|
||||
systemd-sysv \
|
||||
iwd \
|
||||
curl openssh-client \
|
||||
|
69
hooks/4-booster-setup.chroot
Executable file
69
hooks/4-booster-setup.chroot
Executable file
@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Create booster hook dirs
|
||||
mkdir -p /usr/share/booster/hooks-early
|
||||
mkdir -p /usr/share/booster/hooks-late
|
||||
|
||||
# Create Early hook
|
||||
touch /usr/share/booster/hooks-early/pika_live.sh
|
||||
tee /usr/share/booster/hooks-early/pika_live.sh <<'EOF'
|
||||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
cat /proc/cmdline | grep 'boot=live' || exit 0
|
||||
|
||||
### Config
|
||||
MEDIUM_LABEL="PikaOS 4"
|
||||
#TMPFS_SIZE="3G"
|
||||
|
||||
### Create mounting dirs
|
||||
mkdir -p /mnt/medium /mnt/filesystem /mnt/overlay /root
|
||||
|
||||
### Mount live medium
|
||||
mount -o ro "$(findfs LABEL="$MEDIUM_LABEL" | head -n1)" /mnt/medium
|
||||
|
||||
### Load loop module if not already loaded
|
||||
modprobe loop
|
||||
|
||||
### Create loop from squashfs
|
||||
|
||||
#losetup /dev/loop69 /mnt/medium/live/filesystem.squashfs
|
||||
## Mount squashfs loop
|
||||
#mount -o ro /dev/loop69 /mnt/filesystem
|
||||
mount -o loop,ro /mnt/medium/live/filesystem.squashfs /mnt/filesystem
|
||||
|
||||
### Mount tmpfs on ram
|
||||
|
||||
#mount -t tmpfs -o size="$TMPFS_SIZE",mode=1777 overlay_tmpfs /mnt/overlay
|
||||
mount -t tmpfs -o mode=1777 overlay_tmpfs /mnt/overlay
|
||||
|
||||
### Create overlay dirs
|
||||
mkdir -p /mnt/overlay/upper /mnt/overlay/work
|
||||
|
||||
### Create merged overlay
|
||||
mount -t overlay overlay -o lowerdir=/mnt/filesystem:/mnt/medium,upperdir=/mnt/overlay/upper,workdir=/mnt/overlay/work /root
|
||||
|
||||
### mount kernel filesystems
|
||||
mount -n -t devtmpfs devtmpfs /root/dev
|
||||
mount -n -t proc proc /root/proc
|
||||
mount -n -t sysfs sysfs /root/sys
|
||||
mount -n -t tmpfs tmpfs /root/run
|
||||
|
||||
|
||||
### Switch to new root
|
||||
#switch_root "/root/" "/root/sbin/init"
|
||||
EOF
|
||||
|
||||
touch /etc/booster.yaml
|
||||
tee /etc/booster.yaml <<'EOF'
|
||||
vconsole: true
|
||||
extra_files: busybox
|
||||
enable_lvm: true
|
||||
modules_force_load: usbhid
|
||||
universal: true
|
||||
modules: *
|
||||
enable_hooks: true
|
||||
enable_plymouth: true
|
||||
EOF
|
@ -23,4 +23,6 @@ xfsprogs
|
||||
refind
|
||||
mesa-hybrid
|
||||
console-common
|
||||
console-data
|
||||
console-data
|
||||
booster
|
||||
plymouth
|
Loading…
Reference in New Issue
Block a user