From 134cf631ae6257c91cfa143912a89abfe03f5cd7 Mon Sep 17 00:00:00 2001 From: u Date: Fri, 17 Nov 2023 12:43:09 -0500 Subject: install system grub defaults --- Makefile | 14 +++++--------- conf/grub.default | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 conf/grub.default diff --git a/Makefile b/Makefile index e29dbb7..6265999 100644 --- a/Makefile +++ b/Makefile @@ -251,16 +251,12 @@ install-bin-programs: ${bin_programs} CP=cp --preserve=timestamps -r +defaults_conf_files = conf/grub.default +initramfs_conf_files = $(addprefix initramfs-tools/,hooks/samizdat scripts/samizdat) install-stamp: install-bin-programs samizdat-paths.sh ${compiled_programs} - mkdir -p ${instdir}${samizdat_initrd_files_dir} - mkdir -p ${instdir}${samizdat_child_dir} - mkdir -p ${instdir}${samizdat_grub_efi_dir} - mkdir -p ${instdir}${samizdat_initramfs_conf_dir} - mkdir -p ${instdir}${samizdat_isolinux_dir} - mkdir -p ${instdir}${samizdat_linux_dir} - $(CP) ${initrd_files} ${instdir}${samizdat_initrd_files_dir} - $(CP) ${initramfs_conf_files} ${instdir}${samizdat_initramfs_conf_dir} - $(CP) ${isolinux_files} ${instdir}${samizdat_isolinux_dir} + install -m644 --backup=t -T -- conf/grub.default /etc/default/grub + install -t /etc/initramfs-tools/hooks -- initramfs-tools/hooks/samizdat + install -t /etc/initramfs-tools/scripts -- initramfs-tools/scripts/samizdat touch $@ bootclean: diff --git a/conf/grub.default b/conf/grub.default new file mode 100644 index 0000000..193c896 --- /dev/null +++ b/conf/grub.default @@ -0,0 +1,39 @@ +# If you change this file, run 'update-grub' afterwards to update +# /boot/grub/grub.cfg. +# For full documentation of the options in this file, see: +# info -f grub -n 'Simple configuration' + +GRUB_DEFAULT=0 +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian` (samizdat)" +GRUB_CMDLINE_LINUX_DEFAULT="quiet" +GRUB_CMDLINE_LINUX="boot=samizdat" + +# If your computer has multiple operating systems installed, then you +# probably want to run os-prober. However, if your computer is a host +# for guest OSes installed via LVM or raw disk devices, running +# os-prober can cause damage to those guest OSes as it mounts +# filesystems to look for things. +#GRUB_DISABLE_OS_PROBER=false + +# Uncomment to enable BadRAM filtering, modify to suit your needs +# This works with Linux (no patch required) and with any kernel that obtains +# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) +#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" + +# Uncomment to disable graphical terminal +#GRUB_TERMINAL=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +#GRUB_GFXMODE=640x480 + +# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +#GRUB_DISABLE_RECOVERY="true" + +# Uncomment to get a beep at grub start +#GRUB_INIT_TUNE="480 440 1" -- cgit v1.2.3