From 8fff8d93f9121bc3d04b9eee2b748a5acb8f9f13 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Sat, 3 Aug 2024 01:45:59 +0300 Subject: [PATCH] add dynamicly sized efi image --- build.sh | 3 +-- hooks/1-add-autologin.chroot | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 hooks/1-add-autologin.chroot diff --git a/build.sh b/build.sh index e9236bb..e6f71d0 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/hooks/1-add-autologin.chroot b/hooks/1-add-autologin.chroot new file mode 100755 index 0000000..0807dd1 --- /dev/null +++ b/hooks/1-add-autologin.chroot @@ -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