summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@billy>2023-11-17 12:43:09 -0500
committeru <u@billy>2023-11-17 12:45:54 -0500
commit134cf631ae6257c91cfa143912a89abfe03f5cd7 (patch)
tree20abd7391fa1f304b551e48c8e10a825cccbd976
parenta2b2c5bff8beae2710ccac4f010cf77099f8237b (diff)
install system grub defaults
-rw-r--r--Makefile14
-rw-r--r--conf/grub.default39
2 files changed, 44 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index e29dbb7..6265999 100644
--- a/Makefile
+++ b/Makefile
@@ -251,16 +251,12 @@ install-bin-programs: ${bin_programs}
251 251
252CP=cp --preserve=timestamps -r 252CP=cp --preserve=timestamps -r
253 253
254defaults_conf_files = conf/grub.default
255initramfs_conf_files = $(addprefix initramfs-tools/,hooks/samizdat scripts/samizdat)
254install-stamp: install-bin-programs samizdat-paths.sh ${compiled_programs} 256install-stamp: install-bin-programs samizdat-paths.sh ${compiled_programs}
255 mkdir -p ${instdir}${samizdat_initrd_files_dir} 257 install -m644 --backup=t -T -- conf/grub.default /etc/default/grub
256 mkdir -p ${instdir}${samizdat_child_dir} 258 install -t /etc/initramfs-tools/hooks -- initramfs-tools/hooks/samizdat
257 mkdir -p ${instdir}${samizdat_grub_efi_dir} 259 install -t /etc/initramfs-tools/scripts -- initramfs-tools/scripts/samizdat
258 mkdir -p ${instdir}${samizdat_initramfs_conf_dir}
259 mkdir -p ${instdir}${samizdat_isolinux_dir}
260 mkdir -p ${instdir}${samizdat_linux_dir}
261 $(CP) ${initrd_files} ${instdir}${samizdat_initrd_files_dir}
262 $(CP) ${initramfs_conf_files} ${instdir}${samizdat_initramfs_conf_dir}
263 $(CP) ${isolinux_files} ${instdir}${samizdat_isolinux_dir}
264 touch $@ 260 touch $@
265 261
266bootclean: 262bootclean:
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 @@
1# If you change this file, run 'update-grub' afterwards to update
2# /boot/grub/grub.cfg.
3# For full documentation of the options in this file, see:
4# info -f grub -n 'Simple configuration'
5
6GRUB_DEFAULT=0
7GRUB_TIMEOUT=5
8GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian` (samizdat)"
9GRUB_CMDLINE_LINUX_DEFAULT="quiet"
10GRUB_CMDLINE_LINUX="boot=samizdat"
11
12# If your computer has multiple operating systems installed, then you
13# probably want to run os-prober. However, if your computer is a host
14# for guest OSes installed via LVM or raw disk devices, running
15# os-prober can cause damage to those guest OSes as it mounts
16# filesystems to look for things.
17#GRUB_DISABLE_OS_PROBER=false
18
19# Uncomment to enable BadRAM filtering, modify to suit your needs
20# This works with Linux (no patch required) and with any kernel that obtains
21# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
22#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
23
24# Uncomment to disable graphical terminal
25#GRUB_TERMINAL=console
26
27# The resolution used on graphical terminal
28# note that you can use only modes which your graphic card supports via VBE
29# you can see them in real GRUB with the command `vbeinfo'
30#GRUB_GFXMODE=640x480
31
32# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
33#GRUB_DISABLE_LINUX_UUID=true
34
35# Uncomment to disable generation of recovery mode menu entries
36#GRUB_DISABLE_RECOVERY="true"
37
38# Uncomment to get a beep at grub start
39#GRUB_INIT_TUNE="480 440 1"