add dynamicly sized efi image

This commit is contained in:
Ward from fusion-voyager-3 2024-08-03 01:45:59 +03:00
parent 52441333d6
commit 8fff8d93f9
2 changed files with 7 additions and 2 deletions

View File

@ -43,7 +43,6 @@ umount "$ROOTFS_PATH/sys" || umount -lf "$ROOTFS_PATH/sys" || true
mksquashfs \
"$ROOTFS_PATH" \
"$LIVE_BOOT_LIVE_PATH/filesystem.squashfs" \
-e boot \
-noappend \
-comp xz \
-b 1M \
@ -66,7 +65,7 @@ cp "$ROOTFS_PATH/boot"/vmlinuz-* \
cp "$ROOTFS_PATH/boot"/initrd.img-* \
"./data/refind/EFI/initrd"
dd if=/dev/zero of="$LIVE_BOOT_PATH/efiboot.img" bs=1M count=512
dd if=/dev/zero of="$LIVE_BOOT_PATH/efiboot.img" bs=512 count=$(du -s ./data/refind | cut -f1)
mkfs.msdos -F 16 "$LIVE_BOOT_PATH/efiboot.img"
for directory in $(find ./data/refind/EFI/ -type d | cut -d'/' -f4-)
do

6
hooks/1-add-autologin.chroot Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
mkdir -p /etc/gdm3 || true
mkdir -p /etc/sddm.conf.d/ || true
echo -e '[daemon]\nAutomaticLogin=pikaos\nAutomaticLoginEnable=True' >> /etc/gdm3/custom.conf || true
echo -e '[Autologin]\nUser=pikaos\nSession=plasma' > /etc/sddm.conf.d/zautologin.conf || true