leifliddy / asahi-firstboot Goto Github PK
View Code? Open in Web Editor NEWMiscellaneous admin scripts for the Asahi Linux Fedora distro
License: MIT License
Miscellaneous admin scripts for the Asahi Linux Fedora distro
License: MIT License
Any arguments I set with grubby
get reset after running update-grub:
# Show the initial state of kernel args.
$ sudo grubby --info=/boot/vmlinuz-$(uname -r)
index=0
kernel="/boot/vmlinuz-5.19.0-x.asahi5.1.fc36.aarch64"
args="ro"
root="UUID=38251e78-f606-42d7-9551-a5e0747819e9"
initrd="/boot/initramfs-5.19.0-x.asahi5.1.fc36.aarch64.img"
title="Fedora Linux (5.19.0-x.asahi5.1.fc36.aarch64) 36 (Workstation Edition)"
id="be43f8b1ac614bb8baf175f808136ba1-5.19.0-x.asahi5.1.fc36.aarch64"
# Set some kernel args.
$ sudo grubby --update-kernel=ALL --args='root=/dev/stratis/fedora/root stratis.rootfs.pool_uuid=fccd3f78-2670-40b6-8e51-f1c326a4147b'
# Show the updated kernel args.
$ sudo grubby --info=/boot/vmlinuz-$(uname -r)
index=0
kernel="/boot/vmlinuz-5.19.0-x.asahi5.1.fc36.aarch64"
args="ro stratis.rootfs.pool_uuid=fccd3f78-2670-40b6-8e51-f1c326a4147b"
root="/dev/stratis/fedora/root"
initrd="/boot/initramfs-5.19.0-x.asahi5.1.fc36.aarch64.img"
title="Fedora Linux (5.19.0-x.asahi5.1.fc36.aarch64) 36 (Workstation Edition)"
id="be43f8b1ac614bb8baf175f808136ba1-5.19.0-x.asahi5.1.fc36.aarch64"
# Run update-grub.
$ sudo update-grub
boot UUID: 006c04be-05b5-474d-a1b9-d23a1477f956
root UUID: 38251e78-f606-42d7-9551-a5e0747819e9
Partition: hd0,gpt6
prefix_grub_dir: /grub2
Generating GRUB image...
Generating grub configuration file ...
done
# Show the now-reset kernel args.
$ sudo grubby --info=/boot/vmlinuz-$(uname -r)
index=0
kernel="/boot/vmlinuz-5.19.0-x.asahi5.1.fc36.aarch64"
args="ro"
root="UUID=38251e78-f606-42d7-9551-a5e0747819e9"
initrd="/boot/initramfs-5.19.0-x.asahi5.1.fc36.aarch64.img"
title="Fedora Linux (5.19.0-x.asahi5.1.fc36.aarch64) 36 (Workstation Edition)"
id="be43f8b1ac614bb8baf175f808136ba1-5.19.0-x.asahi5.1.fc36.aarch64"
I'm guessing this is because, since update-grub was originally written for an Arch setup, it messes with Fedora's method of using BLS config files, but from looking at the script, it's not really obvious to me why that would be the case.
Now, I'm aware the script says:
# shouldn't really need to run this unless the root partition uuid changes
# as Fedora uses the Boot Loader Specification (BLS)
but ideally running it would then do nothing, rather than making undesired changes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.