fix udev
This commit is contained in:
parent
740a0ee687
commit
f31d8c49af
45
config
45
config
@ -1,46 +1,48 @@
|
|||||||
#
|
#
|
||||||
# configuration
|
# configuration
|
||||||
#
|
#
|
||||||
|
# uncomment and fill settings which you needed
|
||||||
|
|
||||||
# debug mode
|
# debug mode
|
||||||
#
|
#
|
||||||
debug=0
|
#debug=0
|
||||||
|
|
||||||
# overwrite initramfs
|
# overwrite initramfs
|
||||||
#
|
#
|
||||||
force=0
|
#force=0
|
||||||
|
|
||||||
# initramfs output path
|
# initramfs output path
|
||||||
#
|
#
|
||||||
# default - /tmp/initramfs-$kernel
|
# default - /tmp/initramfs-$kernel
|
||||||
# example - output="/tmp/myinitramfs.img.gz"
|
# example - output="/tmp/myinitramfs.img.gz"
|
||||||
#
|
#
|
||||||
output=""
|
#output=""
|
||||||
|
|
||||||
# monolithic kernel
|
# monolithic kernel
|
||||||
|
# enable this if you have monolithic kernel (builtin modules)
|
||||||
#
|
#
|
||||||
monolith=0
|
#monolith=0
|
||||||
|
|
||||||
# modules directory
|
# modules directory
|
||||||
#
|
#
|
||||||
# default - /lib/modules
|
# default - /lib/modules
|
||||||
# example - moddir="/mnt/root/lib/modules"
|
# example - moddir="/mnt/root/lib/modules"
|
||||||
#
|
#
|
||||||
moddir=""
|
#moddir=""
|
||||||
|
|
||||||
# kernel version
|
# kernel version
|
||||||
#
|
#
|
||||||
# default - $(uname -r)
|
# default - $(uname -r)
|
||||||
# example - kernel="5.4.18_1"
|
# example - kernel="5.4.18_1"
|
||||||
#
|
#
|
||||||
kernel=""
|
#kernel=""
|
||||||
|
|
||||||
# compression program
|
# compression program
|
||||||
#
|
#
|
||||||
# default - gzip -9
|
# default - gzip -9
|
||||||
# example - compress="pigz -9"
|
# example - compress="pigz -9"
|
||||||
#
|
#
|
||||||
compress=""
|
#compress=""
|
||||||
|
|
||||||
# root
|
# root
|
||||||
#
|
#
|
||||||
@ -49,47 +51,50 @@ compress=""
|
|||||||
# root="/dev/sda1"
|
# root="/dev/sda1"
|
||||||
# root="PARTUUID=35f923c5-083a-4950-a4da-e611d0778121"
|
# root="PARTUUID=35f923c5-083a-4950-a4da-e611d0778121"
|
||||||
#
|
#
|
||||||
root=""
|
#root=""
|
||||||
|
|
||||||
# root type
|
# root type
|
||||||
#
|
#
|
||||||
# default - autodetected
|
# default - autodetected
|
||||||
# example - root_type="btrfs"
|
# example - root_type="btrfs"
|
||||||
#
|
#
|
||||||
root_type=""
|
#root_type=""
|
||||||
|
|
||||||
# root options
|
# root options
|
||||||
# example - see fstab(5)
|
# example - see fstab(5)
|
||||||
#
|
#
|
||||||
root_opts=""
|
#root_opts=""
|
||||||
|
|
||||||
# device manager
|
# device manager
|
||||||
# supported - udev, mdev, mdevd
|
# supported - udev, mdev, mdevd
|
||||||
#
|
#
|
||||||
devmgr=""
|
#devmgr=""
|
||||||
|
|
||||||
# hostonly mode
|
# hostonly mode
|
||||||
#
|
#
|
||||||
hostonly=0
|
# dramatically reduce initramfs size
|
||||||
|
# useful only for modular kernels
|
||||||
|
#
|
||||||
|
#hostonly=0
|
||||||
|
|
||||||
# additional modules
|
# additional modules
|
||||||
# example - modules="fat crc32c_generic"
|
# example - modules="fat crc32c_generic"
|
||||||
#
|
#
|
||||||
modules=""
|
#modules=""
|
||||||
|
|
||||||
# exclude modules
|
# exclude modules
|
||||||
# example - modules_exclude="wmi fuse"
|
# example - modules_exclude="wmi fuse"
|
||||||
#
|
#
|
||||||
modules_exclude=""
|
#modules_exclude=""
|
||||||
|
|
||||||
# additional binaries
|
# additional binaries
|
||||||
# example - binaries="ls cat /path/to/mycustomprog"
|
# example - binaries="ls cat /path/to/mycustomprog"
|
||||||
#
|
#
|
||||||
binaries=""
|
#binaries=""
|
||||||
|
|
||||||
# LVM support
|
# LVM support
|
||||||
#
|
#
|
||||||
lvm=0
|
#lvm=0
|
||||||
|
|
||||||
# LVM options
|
# LVM options
|
||||||
#
|
#
|
||||||
@ -106,11 +111,11 @@ lvm=0
|
|||||||
# lvm_opts="config=1,discard"
|
# lvm_opts="config=1,discard"
|
||||||
# lvm_opts="discard=1"
|
# lvm_opts="discard=1"
|
||||||
#
|
#
|
||||||
lvm_opts=""
|
#lvm_opts=""
|
||||||
|
|
||||||
# LUKS support
|
# LUKS support
|
||||||
#
|
#
|
||||||
luks=0
|
#luks=0
|
||||||
|
|
||||||
# LUKS encrypted root
|
# LUKS encrypted root
|
||||||
#
|
#
|
||||||
@ -119,7 +124,7 @@ luks=0
|
|||||||
# luks_root="/dev/sda1"
|
# luks_root="/dev/sda1"
|
||||||
# luks_root="PARTUUID=35f923c5-083a-4950-a4da-e611d0778121"
|
# luks_root="PARTUUID=35f923c5-083a-4950-a4da-e611d0778121"
|
||||||
#
|
#
|
||||||
luks_root=""
|
#luks_root=""
|
||||||
|
|
||||||
# LUKS options
|
# LUKS options
|
||||||
#
|
#
|
||||||
@ -133,4 +138,4 @@ luks_root=""
|
|||||||
# luks_opts="key=/path/to/keyfile,name=myluksroot,header=/path/to/header,discard"
|
# luks_opts="key=/path/to/keyfile,name=myluksroot,header=/path/to/header,discard"
|
||||||
# luks_opts="discard=1"
|
# luks_opts="discard=1"
|
||||||
#
|
#
|
||||||
luks_opts=""
|
#luks_opts=""
|
||||||
|
@ -183,6 +183,9 @@ install_devmgr()
|
|||||||
install_binary "$_binary"
|
install_binary "$_binary"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# i hate udev
|
||||||
|
mkdir -p "${workdir}/run/udev"
|
||||||
|
|
||||||
# exclusively handle requirement
|
# exclusively handle requirement
|
||||||
[ "$luks" = 1 ] || [ "$lvm" = 1 ] && install_binary dmsetup
|
[ "$luks" = 1 ] || [ "$lvm" = 1 ] && install_binary dmsetup
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user