Fabio Erculiani
49c4af162b
linuxrc: create /etc/ld.so.cache if it's not in the initramfs
11 years ago
Fabio Erculiani
65d6d36332
00-fsdev.sh: drop any reference to mdstart, no longer used nowadays
...
See Gentoo bug #494804
11 years ago
Fabio Erculiani
8ae92b7601
linuxrc: fix /dev/shm mount, move it after /dev mount, add strictatime support to busybox
...
The busybox patch has been backported 1.21.1.
11 years ago
Fabio Erculiani
b566f1ed9e
linuxrc: mount /dev/shm with appropriate permissions, see Gentoo bug #493652
11 years ago
Fabio Erculiani
f545918a49
linuxrc: fix REAL_INIT setup in livecd mode
11 years ago
Fabio Erculiani
ac5324d3f0
linuxrc: fix check against REAL_INIT and FAKE_INIT
...
Prioritize the latter (init=) if it's set and no real_init= is set.
This, while keeping backward compatibility, makes possible to
directly use init= to boot the preferred init system.
11 years ago
Fabio Erculiani
748e991ecf
00-fsdev.sh: add _is_mdadm helper function
11 years ago
Fabio Erculiani
f92804c752
00-rootdev.sh: always use the blkid detected fstype unless rootfstype= is passed
11 years ago
Fabio Erculiani
b4307cc484
initramfs: add support for multiple crypted root and swap devices
...
It is now possible to pass multiple crypt_roots= and crypt_swaps=
parameters (mind the "s") and have multiple devices concurring to
building the final root device and swap areas activated.
The change is backward compatible and crypt_root=, crypt_swap= is
still fully supported.
This change makes possible to support multiple device mapper block
devices grouped together into aggregated software raid devices.
For instance, two individual luks devices can be now used to build
a single raid0 or raid1 md device.
Moreover, genkernel-next initramfs now supports multiple encrypted
swap devices.
11 years ago
Fabio Erculiani
55c809c090
linuxrc: make sure that /sbin and /usr/sbin are in PATH
12 years ago
Fabio Erculiani
fb12af3062
linuxrc: add TODO about domdadm
12 years ago
Fabio Erculiani
c6af477460
initrd.scripts: move media_find, start_volumes, setup_md_devices to 00-fsdev.sh
12 years ago
Fabio Erculiani
cd20666829
initrd.scripts: move zfs_start_volumes outside of start_volumes
12 years ago
Fabio Erculiani
9d66471c26
initrd.scripts: move zfs_real_root_init outside real_root_init
12 years ago
Fabio Erculiani
eb6e9ca066
initrd.scripts: move livecd code to 00-livecd.sh
12 years ago
Fabio Erculiani
5f9050e1a6
initrd.scripts: refactor setup_real_root and rootdev_init functions
...
These two functions were a real mess, and the cure is painful.
${REAL_ROOT} setup code and ${REAL_ROOT} init code are now cleaner
and easier to read. ZFS support should have been preserved but
I may have caused new regressions. These changes should be tested.
12 years ago
Fabio Erculiani
ce1e10241b
genkernel: migrate ALL the code to 4-spaces tabs
...
\t must die!
12 years ago
Fabio Erculiani
1ac43bf8a6
initrd.scripts: use get_device_fstype to execute fstype specific init code
...
This logic replaces the old and buggy setup_btrfsctl code
12 years ago
Fabio Erculiani
9d8560729f
linuxrc: trivial, improve code style of linuxrc
12 years ago
Fabio Erculiani
a7def21edc
linuxrc: drop another /dev (tty1) pointless check
12 years ago
Fabio Erculiani
35443c24ae
linuxrc: drop useless /dev nodes check
...
The code just moved /dev over, so the checks are pointless
12 years ago
Fabio Erculiani
5e96e6f7dc
linuxrc: move mountpoints move code to move_mounts_to_chroot
12 years ago
Fabio Erculiani
afea330cb1
linuxrc: default REAL_INIT to /sbin/init
12 years ago
Fabio Erculiani
682acf0274
linuxrc: improve code style at the end of the file
12 years ago
Fabio Erculiani
68892f5c65
linuxrc: move devmgr termination code to devmgr_terminate
12 years ago
Fabio Erculiani
8ab82e8b23
linuxrc: unbundle is_livecd() from setup_real_root
12 years ago
Fabio Erculiani
0cac67fa67
linuxrc: move livecd mount code to livecd_mount()
12 years ago
Fabio Erculiani
faf020424d
linuxrc: move root device detection/init code to rootdev_init
12 years ago
Fabio Erculiani
37121be638
initrd.scripts: add is_nfs(), replace ${REAL_ROOT} = /dev/nfs checks
12 years ago
Fabio Erculiani
6f6befff99
linuxrc: call ensure_initramfs_mounts after mounting ${REAL_ROOT}
...
This makes possible to deal with systemd and separate /usr support
as discussed in bug #479730 .
12 years ago
Fabio Erculiani
51a455d49c
linuxrc: use is_livecd() rather than ${CDROOT} value check
12 years ago
Fabio Erculiani
8fa61e098d
linuxrc: move /etc/initramfs.mounts handling to a separate function
12 years ago
Fabio Erculiani
7f41ae2800
linuxrc: fix zfs call, subshell call was missing
12 years ago
Fabio Erculiani
c0bfc7b123
Revert "linuxrc: do not look for ${REAL_INIT} inside the mounted partition"
...
This reverts commit 3bb6c62bd9
.
12 years ago
Fabio Erculiani
86967ea400
linuxrc: move livecd initialization code to livecd_init()
12 years ago
Fabio Erculiani
3bb6c62bd9
linuxrc: do not look for ${REAL_INIT} inside the mounted partition
...
If ${REAL_INIT} is on a separate partition, the check will erroneously
fail. Don't try to be too smart and fix bug #479730
12 years ago
Fabio Erculiani
af1f319509
linuxrc: move resume initialization code to resume_init()
12 years ago
Fabio Erculiani
3f14137bc0
linuxrc: create is_livecd(), stop doing weird ${CDROOT} comparisons
12 years ago
Fabio Erculiani
3c9f0c6850
linuxrc: break condition for luks and resume apart
12 years ago
Fabio Erculiani
f269237602
linuxrc: trivial, use a more compact syntax
12 years ago
Fabio Erculiani
798c45d3da
linuxrc: simplify iscsi setup code
12 years ago
Fabio Erculiani
138b1f8492
linuxrc: move the devmgr initialization code to devmgr_init()
12 years ago
Fabio Erculiani
613a7047a1
linuxrc: move REAL_ROOT* setup to setup_real_root()
12 years ago
Fabio Erculiani
d8af91e3e8
linuxrc: move modules initialization code to modules_init
12 years ago
Fabio Erculiani
f1f04247f4
linuxrc: move splash initialization to splash_init()
12 years ago
Fabio Erculiani
7048779cbc
linuxrc: remove bogus comments
12 years ago
Fabio Erculiani
bbd4283b07
linuxrc: remove pointless comments
12 years ago
Fabio Erculiani
5908a425f4
linuxrc: remove deprecated dolvm2 boot parameter
12 years ago
Fabio Erculiani
ecdb16659b
linuxrc: move zfs initialization code to zfs_init() in initrd.scripts
12 years ago
Fabio Erculiani
4559ecca82
defaults: fix code style
12 years ago