-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83ba77f
commit f60010f
Showing
5 changed files
with
263 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
builder: dnf | ||
distro: Ultramarine Linux 39 | ||
|
||
users: | ||
- username: ultramarine | ||
# plaintext password: ultramarine | ||
password: "$y$j9T$6/DebcxXazPrtBYnNXtEM.$yaUJHww5Mo1L8xNJ9IDJ.bvKOrIJxAG9PGQKWioBMx3" | ||
groups: | ||
- wheel | ||
|
||
|
||
import: | ||
- base.yaml | ||
|
||
scripts: | ||
post: | ||
- id: grub | ||
name: Set up GRUB | ||
file: grub-setup.sh | ||
|
||
disk: | ||
size: 8GiB | ||
partitions: | ||
- label: EFI | ||
size: 512MiB | ||
filesystem: efi | ||
mountpoint: /boot/efi | ||
|
||
- label: boot | ||
size: 1GiB | ||
filesystem: ext4 | ||
mountpoint: /boot | ||
|
||
- label: root | ||
# size: 2.5MiB | ||
filesystem: ext4 | ||
mountpoint: / | ||
|
||
|
||
dnf: | ||
releasever: 39 | ||
arch: aarch64 | ||
options: | ||
- --setopt=cachedir=/var/cache/dnf | ||
- --nogpgcheck | ||
- --setopt=keepcache=True | ||
exclude: | ||
- fedora-release* | ||
- generic-release* | ||
packages: | ||
- filesystem | ||
- setup | ||
- lvm2 | ||
- btrfs-progs | ||
- dmraid | ||
- nvme-cli | ||
- kernel | ||
- glibc | ||
- glibc-common | ||
- dracut-config-generic | ||
- dracut-tools | ||
- dnf | ||
- dracut | ||
# - mkpasswd # maybe not needed soon | ||
- "@core" | ||
- "@standard" | ||
- grub2-tools | ||
- "@hardware-support" | ||
- NetworkManager | ||
- rpm | ||
- libgomp | ||
- ultramarine-release-identity-basic | ||
- ultramarine-release-basic | ||
- fedora-repos | ||
- efibootmgr | ||
|
||
arch_packages: | ||
aarch64: | ||
- grub2-efi-aa64 | ||
- grub2-efi-aa64-modules | ||
- grub2-efi-aa64-cdboot | ||
- shim-aa64 | ||
- shim-unsigned-aarch64 | ||
- bcm283x-firmware | ||
- bcm283x-overlays | ||
- "@arm-tools" | ||
x86_64: | ||
- grub2-efi-x64 | ||
- grub2-efi-x64-modules | ||
- grub2-efi-x64-cdboot | ||
- grub2-pc | ||
- grub2-pc-modules | ||
- shim-x64 | ||
- shim-unsigned-x64 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
builder: dnf | ||
distro: Ultramarine Linux 39 | ||
|
||
users: | ||
- username: ultramarine | ||
# plaintext password: ultramarine | ||
password: "$y$j9T$6/DebcxXazPrtBYnNXtEM.$yaUJHww5Mo1L8xNJ9IDJ.bvKOrIJxAG9PGQKWioBMx3" | ||
groups: | ||
- wheel | ||
|
||
|
||
import: | ||
- base.yaml | ||
|
||
scripts: | ||
post: | ||
- id: grub | ||
name: Set up GRUB | ||
file: grub-setup.sh | ||
|
||
disk: | ||
size: 8GiB | ||
partitions: | ||
- label: EFI | ||
size: 512MiB | ||
filesystem: efi | ||
mountpoint: /boot/efi | ||
|
||
- label: boot | ||
size: 1GiB | ||
filesystem: ext4 | ||
mountpoint: /boot | ||
|
||
- label: root | ||
# size: 2.5MiB | ||
filesystem: ext4 | ||
mountpoint: / | ||
|
||
|
||
dnf: | ||
releasever: 39 | ||
options: | ||
- --setopt=cachedir=/var/cache/dnf | ||
- --nogpgcheck | ||
- --setopt=keepcache=True | ||
exclude: | ||
- fedora-release* | ||
- generic-release* | ||
packages: | ||
- filesystem | ||
- setup | ||
- lvm2 | ||
- btrfs-progs | ||
- dmraid | ||
- nvme-cli | ||
- kernel | ||
- glibc | ||
- glibc-common | ||
- dracut-config-generic | ||
- dracut-tools | ||
- dnf | ||
- dracut | ||
# - mkpasswd # maybe not needed soon | ||
- "@core" | ||
- "@standard" | ||
- grub2-tools | ||
- "@hardware-support" | ||
- NetworkManager | ||
- rpm | ||
- libgomp | ||
- ultramarine-release-identity-basic | ||
- ultramarine-release-basic | ||
- fedora-repos | ||
- efibootmgr | ||
|
||
arch_packages: | ||
aarch64: | ||
- grub2-efi-aa64 | ||
- grub2-efi-aa64-modules | ||
- grub2-efi-aa64-cdboot | ||
- shim-aa64 | ||
- shim-unsigned-aarch64 | ||
- bcm283x-firmware | ||
- bcm283x-overlays | ||
- "@arm-tools" | ||
x86_64: | ||
- grub2-efi-x64 | ||
- grub2-efi-x64-modules | ||
- grub2-efi-x64-cdboot | ||
- grub2-pc | ||
- grub2-pc-modules | ||
- shim-x64 | ||
- shim-unsigned-x64 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
set -x | ||
# Disable os-prober for now | ||
|
||
echo "Disabling os-prober..." | ||
|
||
echo "GRUB_DISABLE_OS_PROBER=true" > /etc/default/grub | ||
grub2-mkconfig > /boot/grub2/grub.cfg | ||
rm /etc/default/grub | ||
|
||
|
||
# get /dev/ of /boot, or / if /boot is not a separate partition | ||
function find_bootdev { | ||
# try findmnt /boot | ||
if findmnt -n -o SOURCE /boot; then | ||
bootdev=$(findmnt -n -o SOURCE /boot) | ||
else | ||
bootdev=$(findmnt -n -o SOURCE /) | ||
fi | ||
} | ||
|
||
|
||
find_bootdev | ||
# get blkid of /boot | ||
bootid=$(blkid -s UUID -o value $bootdev) | ||
|
||
cat << EOF > /boot/efi/EFI/fedora/grub.cfg | ||
search --no-floppy --fs-uuid --set=dev $bootid | ||
set prefix=(\$dev)/grub2 | ||
export \$prefix | ||
configfile \$prefix/grub.cfg | ||
EOF | ||
|
||
# edit ro to rw in all entries | ||
|
||
sed -i 's/ ro / rw /g' /boot/loader/entries/*.conf | ||
|
||
dracut -vfN --add-drivers "virtio virtio_blk virtio_scsi xchi_pci mmc" --regenerate-all | ||
|
||
arch=$(uname -m) | ||
if [[ $arch == "aarch64" ]]; then | ||
cp -P /usr/share/uboot/rpi_arm64/u-boot.bin /boot/efi/rpi-u-boot.bin | ||
cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin | ||
cp -P /usr/share/uboot/rpi_4/u-boot.bin /boot/efi/rpi4-u-boot.bin | ||
fi | ||
rm -f /var/lib/systemd/random-seed | ||
rm -f /etc/NetworkManager/system-connections/*.nmconnection | ||
|
||
rm -f /etc/machine-id | ||
touch /etc/machine-id | ||
|
||
rm -f /var/lib/rpm/__db* |