This commit is contained in:
illiliti 2020-02-24 11:19:38 +03:00
parent ce3a47922e
commit 9450a3535e
2 changed files with 15 additions and 12 deletions

24
config
View File

@ -3,7 +3,7 @@
# #
# debug mode # debug mode
debug=1 #debug=0
# custom init # custom init
#init="" #init=""
@ -18,11 +18,11 @@ debug=1
#compress="" #compress=""
# root fs ( device,partuuid,uuid,label ) # root fs ( device,partuuid,uuid,label )
root="UUID=07729c48-25d8-4096-acaf-ce5322915680" #root=""
# root type # root type
# change this if you using busybox util-linux # change this if you using busybox util-linux
root_type="ext4" #root_type=""
# root options # root options
#root_opts="" #root_opts=""
@ -30,13 +30,13 @@ root_type="ext4"
# disable this if you want to get rid of util-linux # disable this if you want to get rid of util-linux
# NOTE busybox util-linux implemetation doesn't have # NOTE busybox util-linux implemetation doesn't have
# PARTUUID support and proper filesystem type autodetection # PARTUUID support and proper filesystem type autodetection
util_linux=1 #util_linux=0
# device manager ( mdev,mdevd,udev ) # device manager ( mdev,mdevd,udev )
devmgr="mdev" #devmgr=""
# hostonly mode # hostonly mode
hostonly=0 #hostonly=0
# custom drivers # custom drivers
#drivers="" #drivers=""
@ -45,7 +45,7 @@ hostonly=0
#binaries="" #binaries=""
# LVM support # LVM support
lvm=1 #lvm=0
# LVM logical volume name # LVM logical volume name
#lvm_name="" #lvm_name=""
@ -54,19 +54,19 @@ lvm=1
#lvm_group="" #lvm_group=""
# LVM include config # LVM include config
#lvm_conf=1 #lvm_conf=0
# LVM issue_discards # LVM issue_discards
lvm_discard=1 #lvm_discard=0
# LVM options # LVM options
#lvm_args="" #lvm_args=""
# LUKS support # LUKS support
luks=1 #luks=0
# LUKS encrypted root ( device,partuuid,uuid,label ) # LUKS encrypted root ( device,partuuid,uuid,label )
luks_root="PARTUUID=b04395be-f467-458b-8630-9a429b487600" #luks_root=""
# luks mapper name ( /dev/mapper/<name> ) # luks mapper name ( /dev/mapper/<name> )
#luks_name="" #luks_name=""
@ -78,7 +78,7 @@ luks_root="PARTUUID=b04395be-f467-458b-8630-9a429b487600"
#luks_keyfile="/path/to/keyfile" #luks_keyfile="/path/to/keyfile"
# LUKS allow_discards # LUKS allow_discards
luks_discard=1 #luks_discard=0
# LUKS options # LUKS options
#luks_args="" #luks_args=""

3
init
View File

@ -4,6 +4,7 @@
panic() { panic() {
printf "panic >> %s\n" "$1" printf "panic >> %s\n" "$1"
# TODO fix job control # TODO fix job control
sh -l sh -l
} }
@ -14,6 +15,7 @@ parse_cmdline() {
# parse line by line # parse line by line
for line in "$@"; do for line in "$@"; do
# parse options # parse options
case "${line%%=*}" in case "${line%%=*}" in
debug) debug="${line##*=}" ;; debug) debug="${line##*=}" ;;
@ -71,6 +73,7 @@ setup_mdev() {
setup_mdevd() { setup_mdevd() {
# setup daemon # setup daemon
mdevd & mdevd &
# trigger uevents # trigger uevents
mdevd-coldplug mdevd-coldplug
} }