]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut*.asc: add documentation about /etc/cmdline.d/*.conf
authorHarald Hoyer <harald@redhat.com>
Wed, 10 Oct 2012 13:18:26 +0000 (15:18 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 10 Oct 2012 13:25:48 +0000 (15:25 +0200)
dracut.8.asc
dracut.asc
dracut.cmdline.7.asc

index 1f7100b11d3d5ba390f36ddd2b023ed26db691bd..3880cf642df3146e96892a4d95a93c7dc1983195 100644 (file)
@@ -422,6 +422,9 @@ _/etc/conf.d/_::
     set in the configuration files.
 
 _/etc/cmdline_::
+    Can contain additional command line options. Deprecated, better use /etc/cmdline.d/*.conf.
+
+_/etc/cmdline.d/*.conf::
     Can contain additional command line options.
 
 AVAILABILITY
index cce0d800d9600d683e0194dc1059b7f0fa599cb4..d24ebe6c3e3fe0a7b3212d1a8218254c07540ca6 100644 (file)
@@ -328,25 +328,28 @@ To add your own files to the initramfs image, you have several possibilities.
 
 The --include option let you specify a source path and a target path. For example
 ----
-# dracut --include cmdline-preset /etc/cmdline initramfs-cmdline-pre.img
+# dracut --include cmdline-preset /etc/cmdline.d/mycmdline.conf initramfs-cmdline-pre.img
 ----
 will create an initramfs image, where the file cmdline-preset will be copied
-inside the initramfs to _/etc/cmdline_. --include can only be specified once.
+inside the initramfs to _/etc/cmdline.d/mycmdline.conf_. --include can only be specified once.
 
 
 ----
 # mkdir rd.live.overlay
 # mkdir rd.live.overlay/etc
 # mkdir rd.live.overlay/etc/conf.d
-# echo "ip=auto" >> rd.live.overlay/etc/cmdline
-# echo export TESTVAR=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
-# echo export TESTVAR=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
+# mkdir rd.live.overlay/etc/cmdline.d
+# echo "ip=auto" >> rd.live.overlay/etc/cmdline.d/mycmdline.conf
+# echo export FOO=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
+# echo export BAR=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
 # tree rd.live.overlay/
 rd.live.overlay/
 └── etc
-    ├── cmdline
-    └── conf.d
-        └── testvar.conf
+    ├── cmdline.d
+        │   └── mycmdline.conf
+           └── conf.d
+                   └── testvar.conf
+
 # dracut --include rd.live.overlay / initramfs-rd.live.overlay.img
 ----
 
@@ -393,7 +396,7 @@ server about the ip adress for the machine. The dhcp server can also serve an
 additional root-path, which will set the root device for dracut. With this
 mechanism, you have static configuration on your client machine and a
 centralized boot configuration on your TFTP/DHCP server. If you can't pass a
-kernel command line, then you can inject _/etc/cmdline_, with a method described
+kernel command line, then you can inject _/etc/cmdline.d/mycmdline.conf_, with a method described
 in <<Injecting>>.
 
 
index 98334b5ce8c8908caf43aa9b8aa874ceddef9c93..5067cf72c7419c9d6d28a86e289fd7f25c0ad8ff 100644 (file)
@@ -731,7 +731,7 @@ _/etc/conf.d/_::
     set in the configuration files.
 
 _/etc/cmdline_::
-    Can contain additional command line options.
+    Can contain additional command line options. Deprecated, better use /etc/cmdline.d/*.conf.
 
 _/etc/cmdline.d/*.conf_::
     Can contain additional command line options.