Compare commits
No commits in common. "8ea64ee1a4891c4b4d176dbcd246ed319a246423" and "cdc60158c46b5e6f56f6ad4daae648e27f32d32a" have entirely different histories.
8ea64ee1a4
...
cdc60158c4
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
mknod --mode=660 /dev/loop0 b 7 0
|
|
@ -1,18 +0,0 @@
|
|||
#!/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
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
#!/bin/bash
|
|
@ -193,21 +193,11 @@ echo "UUID=$(blkid --output value --match-tag UUID $TARGET_PART_BIG) /container
|
|||
echo '# Void USB dracut configuration
|
||||
|
||||
hostonly="no"
|
||||
compress="xz"
|
||||
|
||||
add_dracutmodules+=" void-usb "
|
||||
omit_dracutmodules+=" nvdimm resume "
|
||||
compress="xz"
|
||||
add_fstab+=" /opt/void-usb/initramfs-fstab "' > /mnt/target/etc/dracut.conf.d/99-void-usb.conf
|
||||
|
||||
#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
|
||||
# TODO: add dracut modules
|
||||
|
||||
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
|
||||
|
|
|
@ -16,8 +16,6 @@ do not rely on the RTC
|
|||
move /boot to /container instead of its own partition
|
||||
look into UEFI specs and general availability of FAT16 support
|
||||
- if possible, shrink ESP and move GRUB to /container
|
||||
add manufacturer where users select the target device
|
||||
show user-firently status instead of scrolling output from all sorts of tools
|
||||
|
||||
musl downsides:
|
||||
- no nvidia drivers
|
||||
|
@ -38,14 +36,12 @@ f2fs for home
|
|||
|
||||
boot setup + dracut configuration
|
||||
- root=/dev/loop0 ro
|
||||
- custom dracut module
|
||||
- pre-udev script
|
||||
- make loop0 appear
|
||||
- custom dracut modules
|
||||
- udev rule for /dev/loop0
|
||||
- pre-mount script
|
||||
- mount /container by UUID (possibly passed from a kernel command line parameter)
|
||||
- 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
|
||||
|
||||
when backing up
|
||||
|
|
|
@ -4,7 +4,7 @@ OS_NAME="Void Linux USB"
|
|||
GRUB_PREFIX="/boot/efi/LOADER/grub"
|
||||
CFG_CUSTOM_BEFORE="custom_before.cfg"
|
||||
CFG_CUSTOM_AFTER="custom_after.cfg"
|
||||
LINUX_CMDLINE="root=/dev/loop0 ro"
|
||||
LINUX_CMDLINE=""
|
||||
|
||||
DEFAULT_LINUX=/boot/vmlinu?
|
||||
if [ ! -f "$DEFAULT_LINUX" ]; then
|
||||
|
|
Loading…
Reference in New Issue