commit f5d0dbf77e417dd02be04b6c5b91f80962e56d9d
parent 4eb0219a1ca5c2cf116280622d39bb5afdcb5834
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 26 Jul 2022 14:26:15 +0200
Add /etc/update-extlinux.conf and disable overwriting extlinux.conf
Diffstat:
2 files changed, 75 insertions(+), 0 deletions(-)
diff --git a/postinstall b/postinstall
@@ -75,6 +75,7 @@ setup_static_symlinks() {
symlink_static_file /etc/profile.d/slashcommand.sh || return $?
symlink_static_file /etc/mkinitfs/mkinitfs.conf || return $?
symlink_static_file /etc/ssh/sshd_config || return $?
+ symlink_static_file /etc/update-extlinux.conf || return $?
}
setup_storage() {
diff --git a/static/etc/update-extlinux.conf b/static/etc/update-extlinux.conf
@@ -0,0 +1,74 @@
+# configuration for extlinux config builder
+
+# overwrite
+# Overwrite current /boot/extlinux.conf. If this is not '1' we will only
+# write to /boot/extlinux.conf.new
+overwrite=0
+
+# vesa_menu
+# use fancy vesa menu (vesamenu.c32) menus, won't work with serial
+vesa_menu=0
+
+# default_kernel_opts
+# default kernel options
+default_kernel_opts=init=/current/init/bin/init rootflags=noatime
+
+# modules
+# modules which should be loaded before pivot_root
+modules=sd-mod,usb-storage,ext4,xfs,lvm
+
+# root
+# root device - if not specified, will be guessed using
+# blkid -o export /dev/root
+root=/dev/mapper/vg-spark_root
+
+# verbose
+# if set to non-zero, update-extlinux will be a lot more verbose.
+verbose=1
+
+# hidden
+# if set to non-zero, the boot menu will be hidden by default.
+hidden=0
+
+# timeout
+# number of seconds to wait before booting default
+timeout=3
+
+# default
+# default kernel to boot
+default=virt
+
+# serial_port
+# serial port number - if not specified, serial console will be disabled
+serial_port=
+
+# serial_baud
+# the baudrate for the serial port. Will use 115200 if unset
+serial_baud=115200
+
+# xen_opts
+# options to hand to xen hypervisor, useful ones are:
+# dom0_mem=384M (give domain-0 environment 384M ram)
+xen_opts=dom0_mem=384M
+
+# if you copy /usr/share/syslinux/reboot.c32 to /boot/, a menu entry
+# will be auto-generated for it
+
+# if you copy hdt.c32, libgpl.c32, and libmenu.c32 from /usr/share/syslinux/
+# to /boot/, a menu entry will be auto-generated for HDT
+
+# if you download and install /boot/memtest, then if HDT is present it
+# will use it, else a separate menu entry will be auto-generated for
+# memtest
+
+# optional password
+# you can generate a SHA512 password using: mkpasswd
+#
+# if you assign a password, you should make this file world-unreadable
+#
+# if a password is assigned, the menu entries can't be edited at boot
+# time, and HDT if present is password-protected
+#
+# you can also include "MENU PASSWD" in any custom entries you have in
+# /etc/update-extlinux.d/
+password=''