<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Enckse</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Enckse"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Enckse"/>
	<updated>2026-05-04T01:48:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Initramfs_init&amp;diff=20114</id>
		<title>Initramfs init</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Initramfs_init&amp;diff=20114"/>
		<updated>2021-08-24T16:40:11Z</updated>

		<summary type="html">&lt;p&gt;Enckse: There was a typo &amp;quot;cryptokey&amp;quot; should be &amp;quot;cryptkey&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{draft}}&lt;br /&gt;
==Usage==&lt;br /&gt;
Under a running alpine machine, the following command can be used if for some reason the initramfs has not been created properly for a new kernel. &lt;br /&gt;
 mkinitfs -c /etc/mkinitfs/mkinitfs.conf -b / &amp;lt;kernelvers&amp;gt;&lt;br /&gt;
The script is located in /sbin/ and is created with ash. It expects /lib/modules to be populated with the &amp;lt;kernelvers&amp;gt; listed. For variations on this command (e.g. for chroot) Search &amp;quot;mkinitfs&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== initramfs init cmdline options (work in progress) ==&lt;br /&gt;
&lt;br /&gt;
In addition to the [https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html kernel boot parameters] are a number of parameters that the init script understands.&lt;br /&gt;
&lt;br /&gt;
Although you may specify your own init script when building an initramfs, these parameters allow for extensive control over the initial startup of an Alpine Linux system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;quiet&amp;lt;/code&amp;gt; : less verbose init script execution&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;debug_init&amp;lt;/code&amp;gt; : sets &#039;-x&#039; in the init script and -d for mdev&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;chart&amp;lt;/code&amp;gt; : Enables bootchartd for measuring system startup speed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ip=dhcp&amp;lt;/code&amp;gt; : use DHCP for network configuration.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ip=client-ip:server-ip:gw-ip:netmask:hostname:device:autoconf:dns1:dns2&amp;lt;/code&amp;gt; : use static IP configuration, each field is separated by a colon &amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;client-ip&amp;lt;/code&amp;gt; ip address of the guest VM where we are going to run the installer&lt;br /&gt;
* &amp;lt;code&amp;gt;server-ip&amp;lt;/code&amp;gt; not used, leave blank or fill with &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;gw-ip&amp;lt;/code&amp;gt;     the gateway ip address&lt;br /&gt;
* &amp;lt;code&amp;gt;netmask&amp;lt;/code&amp;gt;   the netmask&lt;br /&gt;
* &amp;lt;code&amp;gt;hostname&amp;lt;/code&amp;gt;  not used, leave blank or fill with &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;device&amp;lt;/code&amp;gt;    the network interface of the guest VM, default is &amp;lt;code&amp;gt;eth0&amp;lt;/code&amp;gt; if left blank&lt;br /&gt;
* &amp;lt;code&amp;gt;autoconf&amp;lt;/code&amp;gt;  not used, leave blank or fill with &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;off&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;dns1&amp;lt;/code&amp;gt;      address of the DNS server&lt;br /&gt;
* &amp;lt;code&amp;gt;dns2&amp;lt;/code&amp;gt;      address of the 2nd DNS server&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;modloop=URL&amp;lt;/code&amp;gt; : the remote location of the image containing kernel&#039;s modules, required for LVM and raid setup.&lt;br /&gt;
&lt;br /&gt;
:The remote location of the &amp;lt;code&amp;gt;modloop&amp;lt;/code&amp;gt; image is the same as the kernel and initramfs (see below).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;blacklist=MODULE{,MODULE}&amp;lt;/code&amp;gt; : This comma-separated list names kernel modules that modprobe will reject to load.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;alpine_repo=URL&amp;lt;/code&amp;gt; : the location of the Alpine repository from which packages are downloaded.&lt;br /&gt;
&lt;br /&gt;
:For stable release, use &amp;lt;code&amp;gt;http://dl-cdn.alpinelinux.org/alpine/v3.9/main&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:For rolling release, use &amp;lt;code&amp;gt;http://dl-cdn.alpinelinux.org/alpine/edge/main&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ssh_key=URL&amp;lt;/code&amp;gt; : the remote location of your SSH public key. It will be added to root&#039;s authorized_keys. Also triggers OpenSSH-server to be installed and started.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apkovl=URL&amp;lt;/code&amp;gt; : Unpack the APK Overlay file from this URL. Happens immediately after network is up . This option will set the default  for service install and setup to false. (see .default_boot_services).&lt;br /&gt;
&lt;br /&gt;
(work in progress)&lt;br /&gt;
&lt;br /&gt;
* init=&lt;br /&gt;
* init_args=&lt;br /&gt;
&lt;br /&gt;
* dasd=&lt;br /&gt;
* s390x_net=&lt;br /&gt;
* rootfstype=&lt;br /&gt;
* modules=&lt;br /&gt;
* crytptroot=&lt;br /&gt;
* cryptdm=&lt;br /&gt;
* cryptheader=&lt;br /&gt;
* cryptoffset=&lt;br /&gt;
* cryptkey=&lt;br /&gt;
* nbd=&lt;br /&gt;
* root=&lt;br /&gt;
* resume&lt;br /&gt;
* rootflags&lt;br /&gt;
* usbdelay&lt;br /&gt;
* pkgs=&lt;br /&gt;
* ssh_key=&lt;br /&gt;
* keep_apk_new&lt;br /&gt;
* splash=&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Kernel]]&lt;/div&gt;</summary>
		<author><name>Enckse</name></author>
	</entry>
</feed>