Last active
January 6, 2026 03:21
-
-
Save h908714124/6e3b46b72e3aadf8379e1114f29e320e to your computer and use it in GitHub Desktop.
LUKS-less kickstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %include /tmp/vbox.txt | |
| bootloader --sdboot | |
| network --device=link --hostname=box | |
| text | |
| # mkpasswd -m yescrypt --stdin <<< $MY_PW | |
| user --name core --iscrypted --groups wheel --password "$y$j9T$el9zAYHYnL4Oq7jQ9eeYx/$wK0wzF89ZEiy5/WBN1LEnEdeDExDlHofqT/BUzjriS2" | |
| sshkey --username core "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDWj91O8R5KPdkb87xHnqj6Q6rWLQR7nNhvYaltFxKoxIv+CKtLjJIhIF4CZmhpmQUJd2venqzU7mzOq3XsPtu7zOu5iXINgso4FFeja19LFaNPIbWaOB+Qyg44VImV77xLgykJITOrIkYsAnWJHctQr8Uj3MckH4uNQVVvS3/yyGUN6G//mrDXUDHUb+j3IPa//09MudhSPpA7XfFl5ZokVGRJCDVAjGJ04gEf858ZfeBfuwSk1g1kAC2GWQA/O33fqdfC4vrTsyHsgCgTruyC2yaN8t/+9zi5hL+X8+8726z0rZKRFbwdp9iIymYxJiAQbvHaPqgq3ZEWqbw/l9y9VgE2TLl/f4dG25K4KW1a6EImL4GOZm+ljRE440VGrhJn8H7OO61Q11p8jzLb/nNi835EFigfqnXhYkiXtZrAOwPdJogaZGBKV9pPnSEsdqaU61qC4dRXzXsAhPwjQUVo+pAMpjlJqqJhUWdNjsRuCqQ1F/02bjauqY1wSJfcB83Ytgp3XqwJRGu3lUrIMDOny3s/TB571kaxxs5NiqBo1SlEUdKspYQs5ttdwenCCHbOkbwpNn3KIIw7GXYBXZVlJBaVkpi9PmWdB3RbD9eWl/Mj4/95vDe1QbDmNxC122RZfbaoYaLUeCpIeL/YqWX6VGxO8iZCTOSgayHvyBtQrQ==" | |
| reboot | |
| %pre | |
| get_disk() { | |
| lsblk -n --filter "TYPE=='disk' && RM==0" -o MOUNTPOINT,KNAME | sed -n -E 's/^\s+(\S+)$/\1/p' | |
| } | |
| is_mount_possible() { | |
| local label | |
| for label in ESP linuxboot linuxroot linuxhome; do | |
| [[ $(blkid --label $label) ]] || return 1 | |
| done | |
| return 0 | |
| } | |
| print_storage() { | |
| echo "ignoredisk --only-use=$(get_disk)" | |
| if is_mount_possible; then | |
| echo "mount $(blkid --label ESP) /boot/efi" | |
| echo "mount --reformat=ext4 $(blkid --label linuxboot) /boot" | |
| echo "mount --reformat=ext4 $(blkid --label linuxroot) /" | |
| echo "mount $(blkid --label linuxhome) /home" | |
| else | |
| echo "clearpart --all --initlabel" | |
| echo "zerombr" | |
| echo "part /boot/efi --size=1024 --label=ESP" | |
| echo "part /boot --fstype=ext4 --size=200 --label=linuxboot" | |
| echo "part / --fstype=ext4 --size=4096 --label=linuxroot" | |
| echo "part /home --fstype=ext4 --grow --label=linuxhome" | |
| fi | |
| } | |
| return 2> /dev/null || { | |
| print_storage > /tmp/vbox.txt | |
| } | |
| %end | |
| %packages | |
| @core | |
| vim-enhanced | |
| vim-default-editor | |
| %end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment