Skip to content

Commit

Permalink
some funny
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Sep 24, 2023
1 parent e7d87ad commit 514ccd5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ match_block_trailing_comma = true
use_field_init_shorthand = true
use_try_shorthand = true
hard_tabs = true
fn_args_layout = "compressed"
fn_args_layout = "Compressed"
2 changes: 2 additions & 0 deletions tests/katsudon-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ packages:
- grub2-efi-aa64-modules
- grub2-efi-aa64-cdboot
- grub2-tools
- shim-aa64
- shim-unsigned-aarch64


disk:
Expand Down
24 changes: 22 additions & 2 deletions tests/postinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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
rm -f /var/lib/systemd/random-seed
rm -f /etc/NetworkManager/system-connections/*.nmconnection
dnf -y remove dracut-config-generic
# dnf -y remove dracut-config-generic

rm -f /etc/machine-id
touch /etc/machine-id
Expand All @@ -32,7 +32,27 @@ rm -f /var/lib/rpm/__db*

echo "Fixing SELinux labels"

fixfiles -vRa restore
# fixfiles -vRa restore

# todo: move this out of postinst
grub2-mkconfig > /boot/grub2/grub.cfg

# get /dev/ of /boot
bootdev=$(findmnt -n -o SOURCE /boot)

# get blkid of /boot
bootid=$(blkid -s UUID -o value $bootdev)

# heredoc for /dev/disk

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



# dnf up -y # for downloading keys

0 comments on commit 514ccd5

Please sign in to comment.