Skip to content

Commit

Permalink
Merge pull request #12 from Schroeffu/main
Browse files Browse the repository at this point in the history
fix(uefi): make uefi installations available
  • Loading branch information
fadnincx authored Nov 30, 2022
2 parents 095e48a + 88baf2a commit 840e0e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
25 changes: 10 additions & 15 deletions potos-iso/autoinstall/desktop-uefi/user-data
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# cloud-config
#cloud-config
autoinstall:
version: 1
apt:
Expand All @@ -11,11 +10,7 @@ autoinstall:
hostname: potosmachine
# echo -n admin | mkpasswd --method=SHA-512 --stdin
password: $6$CqhJvUmnavRWOv50$nTru/In4/PHD7oP0XQih61IXEfzHOC/8BJ3quYbaxE8uKUSO6XbgbIdUOYQgI5bShTa2doRqwyQAPxh1LDJLJ/
username: adminpotos
keyboard:
layout: us
variant: ''
locale: en_US
username: admin
ssh:
allow-pw: true
authorized-keys: []
Expand Down Expand Up @@ -110,7 +105,7 @@ autoinstall:
- ubuntu-desktop
- plymouth-theme-ubuntu-logo
- ldap-utils
- ansible-core
- ansible
- yad
- jq
late-commands:
Expand All @@ -122,12 +117,12 @@ autoinstall:
;;
esac
done
#- sed -ie 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet splash gnome.initial-setup=1 systemd.debug_shell"|' /target/etc/default/grub
#- cp /cdrom/contrib/sudoers.d/01_gnome-initial-setup /target/etc/sudoers.d/01_gnome-initial-setup
#- cp -r /cdrom/contrib/scripts /target/setup
#- curtin in-target --target=/target -- ln -sf /setup/firstboot-gui.sh /usr/libexec/gnome-initial-setup
#- curtin in-target --target=/target -- update-grub
- mkdir /target/potos
- touch /target/potos/example.empty
- sed -ie 's|GRUB_CMDLINE_LINUX_DEFAULT=.*|GRUB_CMDLINE_LINUX_DEFAULT="quiet splash gnome.initial-setup=1 systemd.debug_shell"|' /target/etc/default/grub
- rm -f /target/etc/netplan/*
- cp /cdrom/contrib/netplan/01-network-manager-all.yaml /target/etc/netplan/01-network-manager-all.yaml
- cp /cdrom/contrib/sudoers.d/01_gnome-initial-setup /target/etc/sudoers.d/01_gnome-initial-setup
- cp -r /cdrom/contrib/scripts /target/setup
- curtin in-target --target=/target -- ln -sf /setup/firstboot-gui.sh /usr/libexec/gnome-initial-setup
- curtin in-target --target=/target -- update-grub

# vim: filetype=yaml
2 changes: 1 addition & 1 deletion potos-iso/create-iso
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ build_iso() {
MBR_FILE=boot_hybrid.img

dd if=${ORIG_ISO} bs=1 count=432 of=${MBR_FILE}
dd if=${ORIG_ISO} bs=512 skip=2855516 count=8496 of=efi.img
dd if=${ORIG_ISO} bs=512 skip=2871452 count=8496 of=efi.img

xorriso -as mkisofs -r -V '${POTOS_CLIENT_NAME} 22.04' \
-o ${POTOS_CLIENT_SHORTNAME}-installer-${ENVIRONMENT}.iso \
Expand Down

0 comments on commit 840e0e9

Please sign in to comment.