improve naming
This commit is contained in:
parent
dc0f99c5ff
commit
716aef47ee
20
generate
20
generate
@ -68,27 +68,27 @@ create_symlinks() {
|
|||||||
#}
|
#}
|
||||||
|
|
||||||
# install mdev
|
# install mdev
|
||||||
use_mdev() {
|
install_mdev() {
|
||||||
install -m644 mdev.conf -t "${tmpdir}/etc"
|
install -m644 mdev.conf -t "${tmpdir}/etc"
|
||||||
install -Dm755 storage-device -t "${tmpdir}/lib/mdev"
|
install -Dm755 storage-device -t "${tmpdir}/lib/mdev"
|
||||||
}
|
}
|
||||||
|
|
||||||
# install mdevd
|
# install mdevd
|
||||||
use_mdevd() {
|
install_mdevd() {
|
||||||
install_binaries mdevd mdevd-coldplug
|
install_binaries mdevd mdevd-coldplug
|
||||||
install -m644 mdev.conf -t "${tmpdir}/etc"
|
install -m644 mdev.conf -t "${tmpdir}/etc"
|
||||||
install -Dm755 storage-device -t "${tmpdir}/lib/mdev"
|
install -Dm755 storage-device -t "${tmpdir}/lib/mdev"
|
||||||
}
|
}
|
||||||
|
|
||||||
# install udev
|
# install udev
|
||||||
use_udev() {
|
install_udev() {
|
||||||
install_binaries udevd udevadm dmsetup
|
install_binaries udevd udevadm dmsetup
|
||||||
# FIXME rewrite this piece of crap
|
# FIXME rewrite this piece of crap
|
||||||
find /usr/lib/udev -type f | grep -v "rc_keymaps\|hwdb.d" | cpio -pd "$tmpdir" >/dev/null 2>&1
|
find /usr/lib/udev -type f | grep -v "rc_keymaps\|hwdb.d" | cpio -pd "$tmpdir" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
# handle lvm
|
# handle lvm
|
||||||
use_lvm() {
|
install_lvm() {
|
||||||
install_binaries lvm
|
install_binaries lvm
|
||||||
# FIXME this code doesn't working with udev
|
# FIXME this code doesn't working with udev
|
||||||
#mkdir "$tmpdir/etc/lvm"
|
#mkdir "$tmpdir/etc/lvm"
|
||||||
@ -103,7 +103,7 @@ use_lvm() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# handle luks
|
# handle luks
|
||||||
use_luks() {
|
install_luks() {
|
||||||
install_binaries cryptsetup
|
install_binaries cryptsetup
|
||||||
|
|
||||||
# avoid locking directory missing warning message
|
# avoid locking directory missing warning message
|
||||||
@ -282,14 +282,14 @@ install_files
|
|||||||
|
|
||||||
# handle device manager
|
# handle device manager
|
||||||
case "$devmgr" in
|
case "$devmgr" in
|
||||||
mdev) use_mdev ;;
|
mdev) install_mdev ;;
|
||||||
mdevd) use_mdevd ;;
|
mdevd) install_mdevd ;;
|
||||||
udev) use_udev ;;
|
udev) install_udev ;;
|
||||||
*) panic "devmgr option broken" ;;
|
*) panic "devmgr option broken" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ "$use_luks" = 1 ] && use_luks
|
[ "$use_luks" = 1 ] && install_luks
|
||||||
[ "$use_lvm" = 1 ] && use_lvm
|
[ "$use_lvm" = 1 ] && install_lvm
|
||||||
|
|
||||||
create_initramfs
|
create_initramfs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user