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
fb3073c7a9
initrd.scripts: improve readability of rootdev_init
12 years ago
Fabio Erculiani
98f264fa20
initrd.scripts: move zfs functions to 00-zfs.sh
12 years ago
Fabio Erculiani
7c2f5828fd
initrd.scripts: move mount_devfs() to 00-devmgr.sh
12 years ago
Fabio Erculiani
e4742ab0b5
initrd.scripts: move more functions to initrd.d/
12 years ago
Fabio Erculiani
90983b4fd2
initrd.scripts: move splash functions to a separate file
...
Start to make the genkernel code a bit modular. Also add initrd.d
support to gen_initramfs.sh
12 years ago
Fabio Erculiani
f0775326eb
initrd.scripts: refactor start_volumes(), improve readability
12 years ago
Fabio Erculiani
382691d467
initrd.scripts: improve code style of mount_devfs
12 years ago
Fabio Erculiani
231ffd477a
initrd.scripts: improve code style of fs_type_in_use
12 years ago
Fabio Erculiani
d518964d6a
initrd.scripts: improve code style of check_loop if test
12 years ago
Fabio Erculiani
8c70f27a93
initrd.scripts: improve code style of check_loop
12 years ago
Fabio Erculiani
9d043ca938
initrd.scripts: rename findnfsmount to find_nfs
12 years ago
Fabio Erculiani
f4b4d6d0d6
initrd.scripts: improve findnfsmount(), simplify code and branches
12 years ago
Fabio Erculiani
7a7e01c47e
initrd.scripts: refactor findnfsmount(), improve readability
12 years ago
Fabio Erculiani
3790c6345a
initrd.scripts: wrap >80 chars lines in devicelist()
12 years ago
Fabio Erculiani
ce1e10241b
genkernel: migrate ALL the code to 4-spaces tabs
...
\t must die!
12 years ago
Fabio Erculiani
ebc7806e16
repo: add `make install` support, bundle busybox, bashcomp and initramfs.mounts
12 years ago
Fabio Erculiani
462d4cb784
patches: drop old busybox patches
12 years ago
Fabio Erculiani
1f6fa37c05
repo: drop genkernel original TODO, I'll prepare a new one
12 years ago
Fabio Erculiani
6f3334d27e
repo: add myself to AUTHORS
12 years ago
Fabio Erculiani
a2c07af44a
repo: drop old BUGS and HACKING documents
12 years ago
Fabio Erculiani
9b47f9b5d2
gen_cmdline: eventually add --btrfs and --no-btrfs cmdline support
...
Thanks to Dennis 'dlan' Lan via bug #481116
12 years ago
Fabio Erculiani
24e26f1b77
initrd.scripts: add more TODOs
12 years ago
Fabio Erculiani
bda76debee
initrd.scripts: kill tuxonice support with a LOT of fire
...
tuxonice is almost dead. Last update was in 2011 and they're now
trying to resurrect this ugly and non-upstream friendly thing.
Moreover, the tuxonice genkernel code is the ugliest thing I have
ever seen in it. Well no, unionfs was even worse.
So please, let's forget about tuxonice for now and focus on the
good looking code. I am willing to accept patches that restore
tuxonice support if they're good quality ones.
Burn tuxonice init code, burn in hell.
12 years ago
Fabio Erculiani
068e7da618
initrd.scripts: add a couple of TODOs
12 years ago
Fabio Erculiani
556f991201
initrd.scripts: fix wording in fstype_init
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
43a4651da2
initrd.scripts: simplify rootdev_init. Break if conditions for better readability
12 years ago
Fabio Erculiani
f5d1084646
initrd.scripts: make rootdev_init use find_real_device
12 years ago
Fabio Erculiani
755eb93994
initrd.scripts: make resume_init use find_real_device
12 years ago
Fabio Erculiani
addfa95e96
initrd.scripts: fix find_real_device output
...
The crazy function should only return to stdout valid devices in
case of UUID= or LABEL=. Other cases are just ignored and not checked
as it was before.
12 years ago
Fabio Erculiani
12af5dfd3a
gen_initramfs, initrd.scripts: migrate to /sbin/btrfs
...
btrfsctl is deprecated.
12 years ago
Fabio Erculiani
c27d3ac25d
initrd.scripts: add get_device_fstype
...
This fuction prints the device file system type to standard output
and will be used in future for executing fstype specific tasks.
12 years ago
Fabio Erculiani
8c839788ff
gen_initramfs: do not copy mkfs.btrfs and btrfsck to initramfs
12 years ago
Fabio Erculiani
8da8c220e0
doc: document --{no-,}btrfs cmdline argument
12 years ago
Fabio Erculiani
26ba1da86b
gen_initramfs: drop --disklabel, always copy blkid to initramfs
...
blkid will be used to detect partition types as well.
12 years ago
Fabio Erculiani
4412cec9b5
gen_initramfs: drop unnecessary if condition in append_blkid
12 years ago
Fabio Erculiani
7b5a70a29e
gen_initramfs: embed btrfs-progs utils in initramfs
...
This patch comes from Dennis 'dlan' Lan through bug #481116 .
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
1b282a7c9f
initrd.scripts: mount livecd / tmpfs with mode=0755 (instead of 0777)
12 years ago
Fabio Erculiani
55240f15e3
gen_initramfs: de-hardcode the last /lib/udev reference
...
Thanks to Martin Wegner for the original patch, I just cleaned it
up a bit and committed.
12 years ago
Fabio Erculiani
9af1f8788c
gen_initramfs: do not hardcode udevdir but use pkg-config
...
Thanks to Martin Wegner for the original patch, I just cleaned it
up a bit and committed.
12 years ago