aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
Commit message (Collapse)AuthorAgeFilesLines
* init: create /run in case it is missingNatanael Copa2015-09-221-1/+1
| | | | mdadm and lvm needs it
* init: make mdadm quietJesse Young2015-09-221-1/+3
|
* init: try mount /dev as devtmpfs and fallback to tmpfsNatanael Copa2015-07-151-1/+2
| | | | eudev depends on devtmpfs
* init: do not eval /proc/cmdlineNatanael Copa2015-04-081-3/+3
| | | | | | It breaks xen boot options like xen-pciback.hide=(01:00.0) ref #3609
* init: respect rootflags for tmpfs root tooNatanael Copa2015-04-081-3/+8
| | | | and warn about root_size. Users should use rootflags instead now.
* init: clean up rootfstype and rootflags optionsNatanael Copa2015-04-081-15/+5
| | | | we can get rid of if/else with some shell variable expansions
* init: add support for rootfstype and rootflags boot optionsOlivier Mauras2015-04-081-3/+15
| | | | | | | | | | | Add support for two new options in the cmdline. - rootfstype: Let's you specify the type of filesystem for the root fs - rootflags: Let's you specify mount options for the root fs - If specified, "ro" flag won't be added by default. This has primarily been setup to be able to boot Alpine guests from a 9P virtio share and make it easy to change mount options from libvirt/qemu
* init: resolve UUID=... devices for cryptsetupNatanael Copa2015-03-101-1/+1
| | | | | | | recent version of cryptsetup does not seem to work with UUID=... devices unless udev is used to create /dev/disk/by-uuid symlinks. We work around that by resolving UUID=... to the device.
* support for tmpfs overlay over rootTimo Teräs2015-02-071-2/+12
| | | | | | useful if wanting to optimize boot time, and do device updates via read-only system image. package management is not too useful in these situations.
* init: fix splash fifo, and make config file optionalTimo Teräs2014-12-021-2/+10
| | | | just having the fbsplash.ppm in boot media activates now splash.
* init: coding style fixNatanael Copa2014-12-011-1/+3
|
* init: allow blacklisting of modules from cmdlineTimo Teräs2014-12-011-1/+4
|
* init: remove 'nofbcon' and the explicit modprobe fbconTimo Teräs2014-12-011-7/+1
| | | | it is useless as fbcon is really loaded by mdev.
* init: preliminary support for splash image during bootTimo Teräs2014-12-011-2/+13
|
* init: fix loading of fbconNatanael Copa2014-11-261-4/+4
| | | | | we check if /sys/class/graphics/fb0 exists before loading fbcon and allow user to disable tiwh nofbcon as boot option
* init: lvm: run vgchange even if vgscan does not return successNatanael Copa2014-11-171-2/+2
| | | | | | | It seems like vgscan does not return success in initramfs, even if the needed devices noded are created. Ignore errors and try run vgchange in any case.
* init: remove /media/floppyNatanael Copa2014-11-101-1/+1
|
* init: minor refactor of find_ovlNatanael Copa2014-11-101-6/+3
| | | | use 'set' instead of 'ls' to find duplicate apkovls
* init: refactor searching for apkovlNatanael Copa2014-11-101-14/+34
| | | | | | | we search on all block devices with known filesystems using blkid. This should help us find apkovl on ext[234] filesystems and on block devices that are not on the USB bus.
* init: set start order of raid, cryptsetup and lvm via alpine_start boot optNatanael Copa2014-11-051-7/+9
| | | | | | | User might want change the order raid cryptsetup and lvm is started. This allows for example cryptsetup on top of lvm. ref #3420
* init: silently fix apk arch in case apkovl arch don't matchNatanael Copa2014-01-071-0/+8
| | | | ref #2529
* init: improve boot outputNatanael Copa2013-11-071-12/+9
| | | | | | | | - Don't redirect apk stdout ouput to /dev/null. recent apk has the progressbar on stdout. - Fix noquiet boot option - Dont't display Init version by default as it gests confused with Alpine release.
* init: support apkovl=<localdev>:<fstype>:pathto/host.apkovl.tar.gzNatanael Copa2013-05-061-0/+18
| | | | | | | | Add support for the following formats for apkovl boot option: apkovl=sda1:ext4:/mydir/host.apkovl.tar.gz apkovl=sda1:/mydir/host.apkovl.tar.gz apkovl=/mydir/host.alpkovl.tar.gz
* init: use apkovl instead of ovl_dev boot option httpNatanael Copa2013-05-021-12/+12
| | | | | | | | Use the format: apkovl=http://<server>/path/host.apkovl.tar.gz when using apkovl from http.
* init: use --update-cache flag instead of a separate apk update runNatanael Copa2013-05-021-3/+1
|
* init: minor cleanup. improve error reportingNatanael Copa2013-05-021-7/+9
|
* init: dont use bash style ==Natanael Copa2013-05-021-4/+4
|
* init: factorize out OVL_DEV_IS_NETWORK variableNatanael Copa2013-05-021-25/+24
| | | | instead, check if OVL_DEV is an URI
* init: remove unused OVL_MNTNatanael Copa2013-05-021-3/+0
|
* init: factorize out ALPINE_DEV_IS_NETWORKNatanael Copa2013-05-021-3/+2
| | | | | Use ALPINE_DEV_FS to detect nfs instead of adding an additional variable
* init: whitespace fixesNatanael Copa2013-05-021-4/+3
|
* mkinitfs - Modified init script for network bootHugo Landau2013-04-111-18/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This supports network boot over NFS providing the correct kernel modules and udhcpc hook script are incorporated to the initrd (tweak mkinitfs config). The init script can now obtain an IP using udhcpc if you specify ip=dhcp. This replaces kernel-level DHCP. Downloading an ovl via http now works also. Use ovl_dev=http://... You can now specify a repository at a different location than at the alpine_dev. Use alpine_repo=http://nl.alpinelinux.org/... By default, or if alpine_repo=auto, a repository will be searched for on the alpine_dev, as usual. alpine_dev can now be an NFS share using alpine_dev=nfs:IP:EXPORT The NFS share is currently necessarily mounted using -o nolock. To boot over PXE you might use ip=dhcp alpine_dev=nfs:1.2.3.4:/... ovl_dev=http://.../foo.apkovl.tar.gz You can use {MAC} and {UUID} in opk_dev. They will be substituted. Ensure you put the value of opk_dev in quotes, e.g. opk_dev="http://.../?mac={MAC}" Example file and driver list for PXE boot: kernel/drivers/net/ethernet/* kernel/net/packet/af_packet.ko kernel/fs/nfs/* kernel/fs/lockd/* kernel/net/sunrpc/* usr/share/udhcpc/default.script
* init: fix cryptdm regressionNatanael Copa2013-03-141-2/+3
|
* skip "current console" from beign added to inittabEugene Rush2013-02-281-0/+3
|
* Revert "init: do not add tty0 to inittab"Natanael Copa2013-02-281-1/+0
| | | | | | Will cause an infinite loop This reverts commit 7610f39218f20a0d9dc207174cae51008a189016.
* init: improve kernel param parsingNatanael Copa2013-02-271-10/+21
| | | | We only set KOPT_* for the args we actually use and ignore the rest.
* init: do not add tty0 to inittabNatanael Copa2013-02-261-0/+1
| | | | It is default console and should not be added to inittab
* Revert "init: only use /etc/apk/world when it exists"Natanael Copa2012-05-171-7/+5
| | | | | | | | | | | | We can not only use /etc/apk/world since it will always be there due to previous apk add --initdb. Instead, clean up the /var/lib/apk/world after upgrade This reverts commit 8981ccbf5b2636c7d2e06b08ffdf87be80fe19c8. Conflicts: initramfs-init.in
* init: search boot repositories after relocationNatanael Copa2012-05-021-3/+4
|
* init: fix inittab for users who upgrades from pre openrcNatanael Copa2012-05-021-0/+8
| | | | | | | The /etc/init.d/rc[SLK] have been replaced with openrc but users might have references to the old scripts in their /etc/inittab. We fix this from initramfs init.
* init: only use /etc/apk/world when it existsNatanael Copa2012-04-301-1/+6
| | | | We should not read /var/lib/apk/world if /etc/apk/world exists.
* init: allow verbose package installNatanael Copa2012-04-301-1/+5
|
* init: avoid error message if /etc/fstab is missing in sysrootNatanael Copa2012-03-071-4/+5
|
* init: generate the repositories after relocationNatanael Copa2012-01-041-9/+15
| | | | | | This solves problem when UUID is used in syslinux.cfg when booting USB devices. The generated repositories had /media/$UUID/apks but the /media/$UUID got relocated to /media/usb
* init: do not try relocate alpine_mnt if not in fstabNatanael Copa2011-11-011-1/+1
|
* init: new boot option: debug_initNatanael Copa2011-10-271-0/+3
| | | | will enable lots of verbose debugging
* init: try detect alpine_dev filesystem if not specifiedNatanael Copa2011-10-271-1/+21
| | | | Note that ext4 will be detected as ext3
* init: replace cramfs with squashfsNatanael Copa2011-10-261-1/+1
| | | | ref #784
* init: delay unmounting apkovl media til after packages are installedNatanael Copa2011-08-271-16/+23
| | | | We might need the apk cache on config media
* init: find UUID=, LABEL= and symlinked devices in fstabsNatanael Copa2011-08-241-18/+57
| | | | Remount devices to match fstab if found