Initramfs init: Difference between revisions
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
{{Note|Alpine Linux security policies are against using passwords for root access via SSH as we consider using public-private key pairs is a much better approach.}} | {{Note|Alpine Linux security policies are against using passwords for root access via SSH as we consider using public-private key pairs is a much better approach.}} | ||
<code>quiet</code> : less verbose init script execution | |||
<code>debug_init</code> : sets '-x' in the init script and -d for mdev | |||
* chart (flag) | * chart (flag) | ||
* alpine_repo= | * alpine_repo= |
Revision as of 05:26, 14 June 2019
initramfs init cmdline options
The init script in the initramfs which is loaded by the kernel understands the following entires in your kernel command line:
ip=dhcp
: use DHCP for network configuration.
ip=client-ip:server-ip:gw-ip:netmask:hostname:device:autoconf:dns1:dns2
: use static IP configuration, each field is separated by a colon :
client-ip
ip address of the guest VM where we are going to run the installerserver-ip
not used, leave blank or fill withnone
gw-ip
the gateway ip addressnetmask
the netmaskhostname
not used, leave blank or fill withnone
device
the network interface of the guest VM, default iseth0
if left blankautoconf
not used, leave blank or fill withnone
oroff
dns1
address of the DNS serverdns2
address of the 2nd DNS server
alpine_repo=
: the location of the Alpine repository from which packages are downloaded.
- For stable release, use
http://dl-cdn.alpinelinux.org/alpine/v3.9/main
- For rolling release, use
http://dl-cdn.alpinelinux.org/alpine/edge/main
modloop=
: the remote location of the image containing kernel's modules, required for LVM and raid setup.
- The remote location of the
modloop
image is the same as the kernel and initramfs (see below).
ssh_key=
: the remote location of your SSH public key which is used to allow SSH connection into the installer. It will be downloaded and copied into /root/.ssh/authorized_keys
in the installer.
quiet
: less verbose init script execution
debug_init
: sets '-x' in the init script and -d for mdev
- chart (flag)
- alpine_repo=
- blacklist=
- apkovl=URL load the apkovl file from URL
- dasd=
- s390x_net=
- rootfstype=
- modules=
- crytptroot=
- cryptdm=
- cryptheader=
- cryptoffset=
- cryptokey=
- nbd=
- root=
- resume
- rootflags
- init=
- init_args=
- usbdelay
- pkgs=
- ssh_key=
- keep_apk_new
- splash=