Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: "Boot Asahi" App #340

Open
alessaba opened this issue Nov 18, 2024 · 1 comment
Open

Idea: "Boot Asahi" App #340

alessaba opened this issue Nov 18, 2024 · 1 comment

Comments

@alessaba
Copy link

alessaba commented Nov 18, 2024

I recently installed Asahi on my M1 Air and was looking for a quicker way to boot the Linux partition

I created a small app (basically a wrapper to a shell script) that just asks for your fingerprint/password (to run as root), calls bless to set the next-boot disk to Asahi, then reboots automatially to Asahi It's a very simple app. If you want to try you can
download it here. If you don't trust the code, you can open the executable with TextEdit, but here is the spoilers for what code actually runs

#!/bin/sh

sudo bless --mount /Volumes/Asahi --setBoot --nextonly
sudo reboot

The reason why i am opening the issue is not only to share this very simple idea, but to propose the addition of such app with the Asahi Installer. It should install the app before asking to reboot. And when the user needs to boot back to Linux, it's just as simple as opening the app. (no more Shutdown + long press the power button!). It is a negligible file size (quarter of a megabyte), and i think it would much improve the boot experience for the average user

Since the app only blesses the disk for the next boot with the --nextonly option, the following step would be to also have Fedora re-bless the disk in case it needs, for example, to reboot because of an update.
If someone wants to have Fedora as the default boot option, you can set it from "Startup Disk" anyway.

Let me know what you think

@alessaba
Copy link
Author

alessaba commented Nov 19, 2024

Update: this version uses a simple AppleScript to do the same thing
Boot Asahi.zip

Code:
do shell script "bless --mount /Volumes/Asahi --setBoot --nextonly; reboot" with administrator privileges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant