1 |
unnilennium |
1.1 |
diff -Nur e-smith-grub-2.6.0.old/root/etc/e-smith/templates/etc/default/grub/GrubCmdLineLinux e-smith-grub-2.6.0/root/etc/e-smith/templates/etc/default/grub/GrubCmdLineLinux |
2 |
|
|
--- e-smith-grub-2.6.0.old/root/etc/e-smith/templates/etc/default/grub/GrubCmdLineLinux 1969-12-31 19:00:00.000000000 -0500 |
3 |
|
|
+++ e-smith-grub-2.6.0/root/etc/e-smith/templates/etc/default/grub/GrubCmdLineLinux 2017-04-05 16:12:34.005000000 -0400 |
4 |
|
|
@@ -0,0 +1,12 @@ |
5 |
|
|
+{ |
6 |
|
|
+ #GRUB_CMDLINE_LINUX="rd.lvm.lv=main/root rd.lvm.lv=main/swap rhgb quiet" |
7 |
|
|
+ # to GRUB_CMDLINE_LINUX="rd.lvm.lv=main/root rd.lvm.lv=main/swap rhgb quiet rootflags=uquota,pquota" |
8 |
|
|
+ # also remove noquota |
9 |
|
|
+ @lines = map { |
10 |
|
|
+ /^GRUB_CMDLINE_LINUX/ && s/noquota//; |
11 |
|
|
+ /^GRUB_CMDLINE_LINUX/ && ! /rootflags=uquota,pquota/ && s/"$/ rootflags=uquota,pquota"/; |
12 |
|
|
+ $_ |
13 |
|
|
+ } @lines; |
14 |
|
|
+ ""; |
15 |
|
|
+} |
16 |
|
|
+ |