Skip to content
Snippets Groups Projects
Unverified Commit bcacf728 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

patches/flash-kernel: use patch from MR

parent f7bb0c4d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
set -e set -e
# https://salsa.debian.org/installer-team/flash-kernel/-/merge_requests/33/diffs
patch -p1 << 'EOF' patch -p1 << 'EOF'
diff --git a/functions b/functions diff --git a/functions b/functions
index a2e2b31..5899e59 100644 index a2e2b311ceeee65460286c83fc4a9e6d7b06eec2..d04d7620a10e6d2344ee7a8313c5f15edb53f6fc 100644
--- a/functions --- a/functions
+++ b/functions +++ b/functions
@@ -789,13 +789,12 @@ if [ -L "$kfile" ]; then @@ -789,8 +789,8 @@ if [ -L "$kfile" ]; then
kfile=$(readlink -e "$kfile") kfile=$(readlink -e "$kfile")
fi fi
-if [ -d /sys/firmware/efi ]; then -if [ -d /sys/firmware/efi ]; then
- # skipping when detect EFI - # skipping when detect EFI
- echo "System running in EFI mode, skipping." +if ! ischroot && [ -d /sys/firmware/efi ]; then
- exit 0 + # skipping when detect EFI and we are not running inside a chroot
-fi echo "System running in EFI mode, skipping."
- exit 0
if ! check_supported "$machine"; then
+ # do nothing if an unsupported platform is booted from EFI
+ if [ -d /sys/firmware/efi ]; then
+ echo "Unsupported platform on EFI system, doing nothing."
+ exit 0
+ fi
error "Unsupported platform '$machine'."
fi fi
EOF EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment