custom.cfg support.

* conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
	* util/grub.d/41_custom.in: New file.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-06-12 13:20:21 +02:00
parent ee62c427e5
commit 57711df6ad
3 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
custom.cfg support.
* conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
* util/grub.d/41_custom.in: New file.
2010-06-12 Colin Watson <cjwatson@ubuntu.com>
* util/grub-mkrescue.in (make_image): Remove sh module, which has

View file

@ -201,7 +201,7 @@ CLEANFILES += grub-gettext_lib
%: util/grub.d/%.in config.status
./config.status --file=$@:$<
chmod +x $@
grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom
grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom 41_custom
ifneq (, $(host_kernel))
grub-mkconfig_SCRIPTS += 10_$(host_kernel)
endif

7
util/grub.d/41_custom.in Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh
cat <<EOF
if [ -f \$prefix/custom.cfg ]; then
source \$prefix/custom.cfg;
fi
EOF