[debian-edu-commits] debian-edu/ 01/04: Add cfengine configuration file cf.grub to enable old style network interface names.
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Sun Jun 19 19:33:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch master
in repository debian-edu-config.
commit 20c0caa9f4fc659d48abffa3e747f41bfd3aed3a
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Sun Jun 19 21:28:43 2016 +0200
Add cfengine configuration file cf.grub to enable old style network interface names.
---
cf/cf.grub | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/cf/cf.grub b/cf/cf.grub
new file mode 100644
index 0000000..a3ac8c2
--- /dev/null
+++ b/cf/cf.grub
@@ -0,0 +1,17 @@
+#
+# Handle the network interface setup (keep old device names) for
+# networked systems.
+
+editfiles:
+ debian.installation.!roaming.!standalone::
+ { /etc/default/grub
+ BeginGroupIfNoSuchLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet"'
+ HashCommentLinesStarting 'GRUB_CMDLINE_LINUX_DEFAULT'
+ LocateLineMatching '#.*GRUB_CMDLINE_LINUX_DEFAULT.*'
+ InsertLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet"'
+ EndGroup
+ }
+
+shellcommands:
+ debian.installation.!roaming.!standalone::
+ "/usr/sbin/update-grub"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list