dracut modules: add 90void-usb
parent
cdc60158c4
commit
ec25fa5a79
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mknod --mode=660 /dev/loop0 b 7 0
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
check() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
depends() {
|
||||||
|
echo bash
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
inst_hook pre-udev 90 "$moddir/create-loop0.sh"
|
||||||
|
inst_hook pre-mount 92 "$moddir/squashfs-img.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
installkernel() {
|
||||||
|
instmods loop
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
#!/bin/bash
|
|
@ -193,11 +193,21 @@ echo "UUID=$(blkid --output value --match-tag UUID $TARGET_PART_BIG) /container
|
||||||
echo '# Void USB dracut configuration
|
echo '# Void USB dracut configuration
|
||||||
|
|
||||||
hostonly="no"
|
hostonly="no"
|
||||||
omit_dracutmodules+=" nvdimm resume "
|
|
||||||
compress="xz"
|
compress="xz"
|
||||||
|
|
||||||
|
add_dracutmodules+=" void-usb "
|
||||||
|
omit_dracutmodules+=" nvdimm resume "
|
||||||
add_fstab+=" /opt/void-usb/initramfs-fstab "' > /mnt/target/etc/dracut.conf.d/99-void-usb.conf
|
add_fstab+=" /opt/void-usb/initramfs-fstab "' > /mnt/target/etc/dracut.conf.d/99-void-usb.conf
|
||||||
|
|
||||||
# TODO: add dracut modules
|
#TODO: mount /container
|
||||||
|
mkdir -p /mnt/target/lib/dracut/modules.d/90void-usb
|
||||||
|
chmod 755 /mnt/target/lib/dracut/modules.d/90void-usb
|
||||||
|
wget --output-document=/mnt/target/lib/dracut/modules.d/90void-usb/module-setup.sh https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/dracut-modules/90void-usb/module-setup.sh
|
||||||
|
chmod 744 /mnt/target/lib/dracut/modules.d/90void-usb/module-setup.sh
|
||||||
|
wget --output-document=/mnt/target/lib/dracut/modules.d/90void-usb/create-loop0.sh https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/dracut-modules/90void-usb/create-loop0.sh
|
||||||
|
chmod 744 /mnt/target/lib/dracut/modules.d/90void-usb/create-loop0.sh
|
||||||
|
wget --output-document=/mnt/target/lib/dracut/modules.d/90void-usb/squashfs-img.sh https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/dracut-modules/90void-usb/squashfs-img.sh
|
||||||
|
chmod 744 /mnt/target/lib/dracut/modules.d/90void-usb/squashfs-img.sh
|
||||||
|
|
||||||
wget --output-document=/mnt/target/opt/void-usb/backup-fs https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/opt/backup-fs
|
wget --output-document=/mnt/target/opt/void-usb/backup-fs https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/opt/backup-fs
|
||||||
chmod 744 /mnt/target/opt/void-usb/backup-fs
|
chmod 744 /mnt/target/opt/void-usb/backup-fs
|
||||||
|
|
|
@ -36,11 +36,13 @@ f2fs for home
|
||||||
|
|
||||||
boot setup + dracut configuration
|
boot setup + dracut configuration
|
||||||
- root=/dev/loop0 ro
|
- root=/dev/loop0 ro
|
||||||
- custom dracut modules
|
- custom dracut module
|
||||||
- udev rule for /dev/loop0
|
- pre-udev script
|
||||||
|
- make loop0 appear
|
||||||
- pre-mount script
|
- pre-mount script
|
||||||
- mount /container by UUID (possibly passed from a kernel command line parameter)
|
- mount /container by UUID (possibly passed from a kernel command line parameter)
|
||||||
- losetup the squashfs img
|
- losetup the squashfs img
|
||||||
|
- pre-pivot script?
|
||||||
- do we need one to move over the /container mount to real root?
|
- do we need one to move over the /container mount to real root?
|
||||||
- overlayfs gets mounted from fstab
|
- overlayfs gets mounted from fstab
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue