Hi Felix, Thanks. The workaround you mentioned worked.
I have done some customizations and am sending it as a patch. It might make making customizations much simpler this way. Regards, Ritesh On Thursday 17 Dec 2009 15:52:34 Ritesh Raj Sarraf wrote: > Hi Felix, > > On Thursday 17 Dec 2009 15:35:12 Felix Zielcke wrote: > > You need to export any variable in /etc/default/grub which you add > > yourself. > > I.e. export GRUB_DISABLE_LINUX_DEBUG="false" in /etc/default/grub should > > work, but I haven't tested this yet. > > For the variables we support, we do it in /usr/sbin/grub-mkconfig. > > But these changes get overwritten then with the next package upgrade. > > Hmmm!! I'll try that and see if that helps. Thanks. > > > Also note that your attached files have .ucf-old respectively .dpkg-old > > and so don't have any effect. > > Oh! Yes. That was taken care of. I just copied them now. > They actually got generated because the default files were modified when I > was trying to setup this request. And today's grub update sensed those > changes. > > Regards, > Ritesh > -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
diff -Naru grub.d/10_linux /etc/grub.d/10_linux
--- grub.d/10_linux 2010-01-01 16:43:03.000000000 +0530
+++ /etc/grub.d/10_linux 2010-01-06 15:17:30.521210580 +0530
@@ -115,5 +115,8 @@
"single ${GRUB_CMDLINE_LINUX}"
fi
+ # Call your custom scripts here.
+ . /etc/grub.d/debug.sh
+
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
done
diff -Naru grub.d/debug.sh /etc/grub.d/debug.sh
--- grub.d/debug.sh 1970-01-01 05:30:00.000000000 +0530
+++ /etc/grub.d/debug.sh 2010-01-06 15:03:04.425211226 +0530
@@ -0,0 +1,4 @@
+ if [ "x${GRUB_DISABLE_LINUX_DEBUG}" != "xtrue" ]; then
+ linux_entry "${OS}" "${version}" true \
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEBUG}"
+ fi
diff -Naru grub.d/README /etc/grub.d/README
--- grub.d/README 2010-01-01 16:43:03.000000000 +0530
+++ /etc/grub.d/README 2010-01-06 15:17:07.625185034 +0530
@@ -9,3 +9,7 @@
administrator. For example, you can add an entry to boot another OS as
01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
the menu; and then adjust the default setting via /etc/default/grub.
+
+Custom menu entries (like debug mode) can be generated through the default 10_linux
+template. You will need to add your custom script entry into 10_linux and it will
+be sourced on next run
signature.asc
Description: This is a digitally signed message part.

