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
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
b0418a0272
initrd.scripts: ensure_initramfs_mounts: check if partition is mounted
...
Before trying to mount a filesystem, check if it's already mounted first.
This way we can call ensure_initramfs_mounts multiple times during
the pivot root initialization.
12 years ago
Fabio Erculiani
4fa6686515
initramfs: use busybox mountpoint rather than copying /bin/mountpoint
...
/bin/mountpoint was copied to the initramfs only when --multipath
is enabled. Now, I'm not sure why we need the full blown mountpoint
when there is busybox mountpoint which exposes the same cmdline
interface. Furthermore, bb mountpoint can be used to determine if
a filesystem is already mounted.
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
071fff18b1
initrd.scripts: <80 chars
12 years ago