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