File: kernel-cmdline.txt

package info (click to toggle)
cloud-init 0.7.6~bzr976-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,264 kB
  • ctags: 2,274
  • sloc: python: 18,679; sh: 1,175; makefile: 71; xml: 21
file content (18 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cloud-config can be provided via the kernel command line.
configuration that comes from the kernel command line has higher priority
than configuration in /etc/cloud/cloud.cfg

The format is:
  cc: <yaml content here> [end_cc]

cloud-config will consider any content after 'cc:' to be cloud-config
data.  If an 'end_cc' string is present, then it will stop reading there.
otherwise it considers everthing after 'cc:' to be cloud-config content.

In order to allow carriage returns, you must enter '\\n', literally, 
on the command line two backslashes followed by a letter 'n'.

Here are some examples:
 root=/dev/sda1 cc: ssh_import_id: [smoser, kirkland]\\n
 root=LABEL=uec-rootfs cc: ssh_import_id: [smoser, bob]\\nruncmd: [ [ ls, -l ], echo hi ] end_cc
 cc:ssh_import_id: [smoser] end_cc cc:runcmd: [ [ ls, -l ] ] end_cc root=/dev/sda1