add dynamicly sized efi image
This commit is contained in:
parent
52441333d6
commit
8fff8d93f9
3
build.sh
3
build.sh
@ -43,7 +43,6 @@ umount "$ROOTFS_PATH/sys" || umount -lf "$ROOTFS_PATH/sys" || true
|
|||||||
mksquashfs \
|
mksquashfs \
|
||||||
"$ROOTFS_PATH" \
|
"$ROOTFS_PATH" \
|
||||||
"$LIVE_BOOT_LIVE_PATH/filesystem.squashfs" \
|
"$LIVE_BOOT_LIVE_PATH/filesystem.squashfs" \
|
||||||
-e boot \
|
|
||||||
-noappend \
|
-noappend \
|
||||||
-comp xz \
|
-comp xz \
|
||||||
-b 1M \
|
-b 1M \
|
||||||
@ -66,7 +65,7 @@ cp "$ROOTFS_PATH/boot"/vmlinuz-* \
|
|||||||
cp "$ROOTFS_PATH/boot"/initrd.img-* \
|
cp "$ROOTFS_PATH/boot"/initrd.img-* \
|
||||||
"./data/refind/EFI/initrd"
|
"./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"
|
mkfs.msdos -F 16 "$LIVE_BOOT_PATH/efiboot.img"
|
||||||
for directory in $(find ./data/refind/EFI/ -type d | cut -d'/' -f4-)
|
for directory in $(find ./data/refind/EFI/ -type d | cut -d'/' -f4-)
|
||||||
do
|
do
|
||||||
|
6
hooks/1-add-autologin.chroot
Executable file
6
hooks/1-add-autologin.chroot
Executable 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
|
Loading…
Reference in New Issue
Block a user