mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
Meta: tweak build-image-grub.sh to allow running make grub-image
..
without sudo.
This commit is contained in:
parent
3f5c80e490
commit
e42f4abd61
Notes:
sideshowbarker
2024-07-19 05:30:10 +09:00
Author: https://github.com/emanuele6 Commit: https://github.com/SerenityOS/serenity/commit/e42f4abd612 Pull-request: https://github.com/SerenityOS/serenity/pull/2595
@ -17,7 +17,7 @@ At present there is no real GPU support so don't expect OpenGL, Vulkan nor accel
|
||||
|
||||
## Creating a Serenity GRUB disk image
|
||||
|
||||
Before creating a Serenity disk image, you need to build the OS as described in the [SerenityOS build instructions](https://github.com/SerenityOS/serenity/blob/master/Documentation/BuildInstructions.md). Follow those instructions up to and including running **make install**. After the OS has built, run **sudo make grub-image** to create a new file called **grub_disk_image** that has GRUB2 installed that can be booted on a real PC.
|
||||
Before creating a Serenity disk image, you need to build the OS as described in the [SerenityOS build instructions](https://github.com/SerenityOS/serenity/blob/master/Documentation/BuildInstructions.md). Follow those instructions up to and including running **make install**. After the OS has built, run **make grub-image** to create a new file called **grub_disk_image** that has GRUB2 installed that can be booted on a real PC.
|
||||
|
||||
The final step is copying **grub_disk_image** onto the disk you wish to boot Serenity off using a command such as:
|
||||
|
||||
|
@ -8,7 +8,7 @@ die() {
|
||||
}
|
||||
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
die "this script needs to run as root"
|
||||
exec sudo -E -- "$0" "$@" || die "this script needs to run as root"
|
||||
fi
|
||||
|
||||
grub=$(command -v grub-install 2>/dev/null) || true
|
||||
|
Loading…
Reference in New Issue
Block a user