Code Monkey home page Code Monkey logo

asahi-firstboot's People

Contributors

leifliddy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

asahi-firstboot's Issues

update-grub script resets all kernel arguments

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 ๐Ÿ˜…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.