Skip to content

Commit 050a03e

Browse files
committed
GRMLBASE: install extlinux.conf on ARM64
First step in supporting uboot bootloader. Might not work directly from an ISO though.
1 parent fb50836 commit 050a03e

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
default l0
2+
menu title Grml Live Linux
3+
prompt 0
4+
timeout 50
5+
6+
label l0
7+
menu label Grml Live Linux
8+
linux /boot/%SHORT_NAME%/vmlinuz
9+
initrd /boot/%SHORT_NAME%/initrd.img
10+
fdtdir /boot/%SHORT_NAME%/dtbs/
11+
append boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% \${bootargs}
12+
13+
label l1
14+
menu label Grml Live Linux: Enable SSH (with random password)
15+
linux /boot/%SHORT_NAME%/vmlinuz
16+
initrd /boot/%SHORT_NAME%/initrd.img
17+
fdtdir /boot/%SHORT_NAME%/dtbs/
18+
append boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% \${bootargs} ssh
19+
20+
label l2
21+
menu label Grml Live Linux: Load German Keyboard Layout
22+
linux /boot/%SHORT_NAME%/vmlinuz
23+
initrd /boot/%SHORT_NAME%/initrd.img
24+
fdtdir /boot/%SHORT_NAME%/dtbs/
25+
append boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% \${bootargs} lang=de
26+
27+
label l3
28+
menu label Grml Live Linux: Debug Mode
29+
linux /boot/%SHORT_NAME%/vmlinuz
30+
initrd /boot/%SHORT_NAME%/initrd.img
31+
fdtdir /boot/%SHORT_NAME%/dtbs/
32+
append boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% \${bootargs} initcall verbose debug=vc systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
# Filename: ${GRML_FAI_CONFIG}/media-scripts/GRMLBASE/32-uboot
3+
# Purpose: Install u-boot configuration
4+
# Authors: grml-team (grml.org)
5+
# Bug-Reports: see http://grml.org/bugs/
6+
# License: This file is licensed under the GPL v2 or any later version.
7+
################################################################################
8+
9+
set -u
10+
set -e
11+
12+
if ! ifclass ARM64 ; then
13+
exit 0
14+
fi
15+
16+
# FAI sets $target, but shellcheck does not know that.
17+
target=${target:?}
18+
# shellcheck source=/dev/null
19+
. "$GRML_LIVE_CONFIG"
20+
21+
media_dir="${target}/${GRML_LIVE_MEDIADIR}"
22+
23+
grml-live-command copy-media-files media -r /boot/extlinux
24+
25+
grml-live-adjust-boot-files "${media_dir}"/boot/extlinux/extlinux.conf

0 commit comments

Comments
 (0)