Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/github/pr/140'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Dec 1, 2023
2 parents f123b91 + c0460ec commit e9f68fc
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 62 deletions.
48 changes: 32 additions & 16 deletions templates/boot/grub/%SHORT_NAME%_options.cfg
Original file line number Diff line number Diff line change
@@ -1,77 +1,93 @@
submenu "%GRML_NAME% - advanced options ->" --class=submenu {
menuentry "%GRML_NAME% - enable Predictable Network Interface Names" {
menuentry "%GRML_NAME% - Enable Predictable Network Interface Names" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce "${loopback}" ${kernelopts}
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}

menuentry "%GRML_NAME% - enable persistency mode" {
menuentry "%GRML_NAME% - Enable SSH (with random password) {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} persistence
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} ssh
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - copy Grml to RAM" {
menuentry "%GRML_NAME% - Load Grml to RAM" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} toram=%GRML_NAME%.squashfs
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - copy whole medium to RAM" {
menuentry "%GRML_NAME% - Load whole medium to RAM" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} toram
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - start X by default" {
menuentry "%GRML_NAME% - Forensic Mode" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} startx
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} read-only nofstab noraid nodmraid nolvm noautoconfig noswap raid=noautodetect
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - disable framebuffer" {
set gfxpayload=text
menuentry "%GRML_NAME% - Persistency Mode" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} video=ofonly radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} persistence
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - disable Kernel Mode-Setting" {
menuentry "%GRML_NAME% - German Settings" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} lang=de
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - forensic mode" {
menuentry "%GRML_NAME% - Graphical Mode" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} read-only nofstab noraid nodmraid nolvm noautoconfig noswap raid=noautodetect
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} startx
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - Disable Framebuffer" {
set gfxpayload=text
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} video=ofonly radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - Disable Kernel Mode-Setting" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - debug mode" {
menuentry "%GRML_NAME% - Debug Mode" {
set gfxpayload=keep
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} initcall verbose debug=vc systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M
echo 'Loading initrd...'
initrd /boot/%SHORT_NAME%/initrd.img
}
menuentry "%GRML_NAME% - serial mode" {
menuentry "%GRML_NAME% - Serial Console" {
set gfxpayload=text
echo 'Loading kernel...'
linux /boot/%SHORT_NAME%/vmlinuz apm=power-off boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% nomce net.ifnames=0 "${loopback}" ${kernelopts} video=vesafb:off console=tty1 console=ttyS0,115200n8
Expand Down
109 changes: 63 additions & 46 deletions templates/boot/isolinux/grml.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

# generic ones

label debug
menu label %GRML_NAME% - ^Debug Mode
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 verbose debug=vc initcall nomce net.ifnames=0 systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M

text help
Boot Grml in debug mode, which
activates debug shells during
bootup sequence.
endtext

label pnet
menu label %GRML_NAME% - Enable Predictable ^Network Interface Names
kernel /boot/%SHORT_NAME%/vmlinuz
Expand All @@ -23,25 +12,6 @@ label pnet
Network Interface Names.
endtext

label nofb
menu label %GRML_NAME% - Dis^able Framebuffer
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=normal radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset nomce net.ifnames=0

text help
Boot Grml without framebuffer.
endtext

label nokms
menu label %GRML_NAME% - Disable ^Kernel Mode-Setting
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset nomce net.ifnames=0 vga=791

text help
Boot Grml without KMS (Kernel
Mode Setting).
endtext

label ssh
menu label %GRML_NAME% - Enable ^SSH (with random password)
kernel /boot/%SHORT_NAME%/vmlinuz
Expand All @@ -57,6 +27,38 @@ label ssh
ssh=secret).
endtext

label grml2ram
menu label %GRML_NAME% - Load Grml to ^RAM
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 nomce net.ifnames=0 toram=%SQUASHFS_NAME%

text help
Load Grml into the memory (RAM).
This allows you to remove the Grml
media after Grml finished booting.

Note: you should have enough RAM
(>= size of ISO * 1.2) to be able
to use this option.
endtext

label grmlmedium2ram
menu label %GRML_NAME% - Load ^whole medium to RAM
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 nomce net.ifnames=0 toram

text help
Load whole medium into the memory (RAM).
This allows you to remove the Grml
media after Grml has finished booting,
and also to access the rest of the
media.

Note: you should have enough RAM
(>= size of ISO * 1.2) to be able
to use this option.
endtext

label forensic
menu label %GRML_NAME% - F^orensic Mode
kernel /boot/%SHORT_NAME%/vmlinuz
Expand All @@ -70,6 +72,18 @@ label forensic
mode.
endtext

label persistence
menu label %GRML_NAME% - ^Persistency mode
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 nomce net.ifnames=0 persistence

text help
Boot Grml and enable persistency
feature to store system and
settings on an external device
with label persistence.
endtext

label lang-de
menu label %GRML_NAME% - ^German Settings
kernel /boot/%SHORT_NAME%/vmlinuz
Expand All @@ -89,31 +103,34 @@ label %GRML_NAME%x
grml-x to start X Window System.
endtext

label grml2ram
menu label %GRML_NAME% - Load to ^RAM
label nofb
menu label %GRML_NAME% - Dis^able Framebuffer
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 nomce net.ifnames=0 toram=%SQUASHFS_NAME%
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=normal radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset nomce net.ifnames=0

text help
Load Grml into the memory (RAM).
This allows you to remove the Grml
media after Grml finished booting.
Boot Grml without framebuffer.
endtext

Note: you should have enough RAM
(>= size of ISO * 1.2) to be able
to use this option.
label nokms
menu label %GRML_NAME% - Disable ^Kernel Mode-Setting
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset nomce net.ifnames=0 vga=791

text help
Boot Grml without KMS (Kernel
Mode Setting).
endtext

label persistence
menu label %GRML_NAME% - ^Persistency mode
label debug
menu label %GRML_NAME% - ^Debug Mode
kernel /boot/%SHORT_NAME%/vmlinuz
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 nomce net.ifnames=0 persistence
append initrd=/boot/%SHORT_NAME%/initrd.img boot=live live-media-path=/live/%GRML_NAME%/ bootid=%BOOTID% apm=power-off vga=791 verbose debug=vc initcall nomce net.ifnames=0 systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M

text help
Boot Grml and enable persistency
feature to store system and
settings on an external device
with label persistence.
Boot Grml in debug mode, which
activates debug shells during
bootup sequence.
endtext

label serial
Expand Down

0 comments on commit e9f68fc

Please sign in to comment.