All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add /boot/grub/custom.cfg file support
@ 2010-06-12  9:35 BVK Chaitanya
  2010-06-12 10:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 4+ messages in thread
From: BVK Chaitanya @ 2010-06-12  9:35 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 131 bytes --]

Hi


Attached patch adds support for /boot/grub/custom.cfg (or
/grub/custom.cfg) file for user customizations.


-- 
bvk.chaitanya

[-- Attachment #2: 41custom.patch --]
[-- Type: text/x-patch, Size: 4089 bytes --]

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: bvk.groups@gmail.com-20100612092745-d9vnimifh4l8iny4
# target_branch: ../mainline/
# testament_sha1: 622dbca749ea3d4b10302fd349b569dffbfae5e3
# timestamp: 2010-06-12 14:57:55 +0530
# base_revision_id: cjwatson@ubuntu.com-20100611211535-\
#   0wnt2vpuk198erq4
# 
# Begin patch
=== modified file 'conf/common.rmk'
--- conf/common.rmk	2010-06-11 20:31:16 +0000
+++ conf/common.rmk	2010-06-12 09:23:57 +0000
@@ -201,7 +201,7 @@
 %: 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

=== modified file 'util/grub-mkconfig.in'
--- util/grub-mkconfig.in	2010-06-08 10:52:42 +0000
+++ util/grub-mkconfig.in	2010-06-12 09:27:45 +0000
@@ -287,8 +287,11 @@
 #
 # DO NOT EDIT THIS FILE
 #
-# It is automatically generated by $self using templates
-# from ${grub_mkconfig_dir} and settings from ${sysconfdir}/default/grub
+# It is automatically generated by $self using templates from
+# ${grub_mkconfig_dir} and settings from ${sysconfdir}/default/grub
+#
+# You can add additional customizations in ${grub_prefix}/custom.cfg
+# file.  You should create it if it doesn't exists already.
 #
 EOF
 

=== added file 'util/grub.d/41_custom.in'
--- util/grub.d/41_custom.in	1970-01-01 00:00:00 +0000
+++ util/grub.d/41_custom.in	2010-06-12 09:23:57 +0000
@@ -0,0 +1,6 @@
+#!/bin/sh
+cat <<EOF
+if [ -f  \$prefix/custom.cfg ]; then
+ source \$prefix/custom.cfg;
+fi
+EOF

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWW1JysIABB1fgAAQfOP//18p
3S6////6YAd3HxQBpQYigJUJFAcwBGCYgGATBNGQ0MAmCMTCUkp5J6M9Kmnp6apnqTQ0wCAAaYTQ
GhhzAEYJiAYBME0ZDQwCYIxMJEiAkwmJlPU8U9Eek9T0mIaaB6jQzRNGhzAEYJiAYBME0ZDQwCYI
xMJJAgAJiZAp6ZCaAKbKeo0NAD1PKcytLaaOAiTU/UPexksUIEcnhNCeDsyqJQ0WO1JnqAmdoOO7
qtyV3rmKdhE8cstMqZlFOHd448uS716Qn99yvJpttsJbPMlvoLE884MmFkJ0R3F7NUU1V1wVqdn4
Pn1GINeR4uTEdm/yceAzflvlfBaGbfpLg6oLa5X69AXGIlZP1oIgeUvtS67fs3bj4uN29R5jcx7m
POf2efikRk5AZAf3PUEWq8V+DpneZ9SgPNDDAiSDPTISqFZMdTeIzXtNTpWXN4FUa7hXnVMJFWIk
Q6iYwK18IdLi7NRERr/1o4xlWmkwRxOYg1EyIxHshIWoiHIckJ8nEmIQIJCgOENOOOEiiQhwIcBB
DPjcMPN6gRLzOcScJfcR9VpbY+4VTI7M/DzP1uSF/Cma8QxyDp8CsRaFeKjmxMdimYSGTVkSzDKV
NbbxwjAcMWgNV9y0nUhrhpPJvnto733X5HBVHFMUhSD3ljxscJ3SN7txJE1yEEaGGEjkJMvhW7GL
WHBhqhLAREtfCc4vJozlsz4ipDOniIZGktNzhTIKuBPdUcB5gPOipLm2gOKhDoF2JLQ3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BxUHp3qpCK
cJHp8lqIiRAzNkHvL/MQuYFqC0cHtEweqwkIkwQm1IjuwhnULUSD8+0cWALsh2glODjmWCNw8ksz
qDZQRFTk4sIDUKAyeGLhOENqJOEcwipoJJUsRCtKRSJTOpMRDAxKAVRn0YNOiIx6pDmgTQMaGjiF
YYlEDGGFNQHSOgQ80nU6CtHqEcx4tcj8r5k4kfW684cRgYBwpziPfWan4LJSICRyWJ6hFq0EMI5E
uTg/cNcgnHcJbb6uGK41iV52NBV5XI9FRXzIvKhImUwhtjhCYrxU5z2mOnXWJFec0WGPPhjh6dEx
sMAgRwEPCpeDJmKWUnBhMkp0E8XZfLeR/LfrQcdHLkREpiyAe4DQiRZ49+12A9wFRwEOeVtIxMQn
qiUpEWQqxOZ0zgIKJY9NQp17JkL9FnxUjmVdVYQAV66pL9CUbhXCL6BI3CX0F9livJSUwJptxv9w
hxkxWBhb8Tf68a0rC3eeKr5N/8XckU4UJBtScrCA

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add /boot/grub/custom.cfg file support
  2010-06-12  9:35 [PATCH] Add /boot/grub/custom.cfg file support BVK Chaitanya
@ 2010-06-12 10:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2010-06-12 11:12   ` BVK Chaitanya
  2010-06-12 19:02   ` seth.goldberg
  0 siblings, 2 replies; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-06-12 10:44 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

On 06/12/2010 11:35 AM, BVK Chaitanya wrote:
> Hi
>
>
> Attached patch adds support for /boot/grub/custom.cfg (or
> /grub/custom.cfg) file for user customizations.
>
>   
This patch is based on the file I provided on the ML some time ago. The
only reason it's not comitted yet is my lack of time which is hopefully
ended. In this particular case there is no problem because the base is
my file but in general you have to aknowledge if you patch is based on
someone else's submissin even if it's not copyright-significant.
Failure to do so can lead to disastrous consequences for the project.
>   
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add /boot/grub/custom.cfg file support
  2010-06-12 10:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2010-06-12 11:12   ` BVK Chaitanya
  2010-06-12 19:02   ` seth.goldberg
  1 sibling, 0 replies; 4+ messages in thread
From: BVK Chaitanya @ 2010-06-12 11:12 UTC (permalink / raw)
  To: The development of GNU GRUB

2010/6/12 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
> On 06/12/2010 11:35 AM, BVK Chaitanya wrote:
>> Hi
>>
>>
>> Attached patch adds support for /boot/grub/custom.cfg (or
>> /grub/custom.cfg) file for user customizations.
>>
>>
> This patch is based on the file I provided on the ML some time ago. The
> only reason it's not comitted yet is my lack of time which is hopefully
> ended. In this particular case there is no problem because the base is
> my file but in general you have to aknowledge if you patch is based on
> someone else's submissin even if it's not copyright-significant.
> Failure to do so can lead to disastrous consequences for the project.


Sorry for not acknowledging.  It will not happen again.



thanks,
-- 
bvk.chaitanya


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add /boot/grub/custom.cfg file support
  2010-06-12 10:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2010-06-12 11:12   ` BVK Chaitanya
@ 2010-06-12 19:02   ` seth.goldberg
  1 sibling, 0 replies; 4+ messages in thread
From: seth.goldberg @ 2010-06-12 19:02 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: grub-devel@gnu.org


   Is thus intended to replace 40_custom, or just supplement it?

   --S

On Jun 12, 2010, at 3:44 AM, Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.co 
m> wrote:

> On 06/12/2010 11:35 AM, BVK Chaitanya wrote:
>> Hi
>>
>>
>> Attached patch adds support for /boot/grub/custom.cfg (or
>> /grub/custom.cfg) file for user customizations.
>>
>>
> This patch is based on the file I provided on the ML some time ago.  
> The
> only reason it's not comitted yet is my lack of time which is  
> hopefully
> ended. In this particular case there is no problem because the base is
> my file but in general you have to aknowledge if you patch is based on
> someone else's submissin even if it's not copyright-significant.
> Failure to do so can lead to disastrous consequences for the project.
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>
> -- 
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-12 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-12  9:35 [PATCH] Add /boot/grub/custom.cfg file support BVK Chaitanya
2010-06-12 10:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-12 11:12   ` BVK Chaitanya
2010-06-12 19:02   ` seth.goldberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.