2023-06-20 13:19:28 +02:00
|
|
|
|
TODO:
|
2023-06-13 08:25:52 +02:00
|
|
|
|
compare sizes of glibc and musl installations
|
2023-06-20 13:19:28 +02:00
|
|
|
|
try running multiple MC versions on musl (incl ThatModPack)
|
2023-06-13 08:25:52 +02:00
|
|
|
|
need xdg menu maker?
|
2023-06-20 13:19:28 +02:00
|
|
|
|
check if there are problems with GRUB’s --disk-module=native on real USB drives on real hardware
|
|
|
|
|
test that the (RAM) boot option allows you to install to the stick the system booted off
|
|
|
|
|
adjust required USB stick and RAM size in README
|
2023-06-27 15:41:16 +02:00
|
|
|
|
test kernel hooks and grub-config with all sorts of weird kernel/initramfs setups
|
|
|
|
|
- all names
|
|
|
|
|
- various compressions
|
|
|
|
|
do not rely on the RTC
|
|
|
|
|
- change the message when configuring UTC/localtime to reflect that this is only for offline usage
|
|
|
|
|
- use ntp to get time
|
|
|
|
|
- only fall back to using rtc if offline
|
|
|
|
|
- do not set the RTC
|
2023-06-28 19:55:09 +02:00
|
|
|
|
move /boot to /run/void-usb/container instead of its own partition
|
2023-06-27 16:20:43 +02:00
|
|
|
|
look into UEFI specs and general availability of FAT16 support
|
2023-06-28 19:55:09 +02:00
|
|
|
|
- if possible, shrink ESP and move GRUB to /run/void-usb/container
|
2023-06-28 13:03:55 +02:00
|
|
|
|
add manufacturer where users select the target device
|
|
|
|
|
show user-firently status instead of scrolling output from all sorts of tools
|
2023-06-20 13:19:28 +02:00
|
|
|
|
|
|
|
|
|
musl downsides:
|
|
|
|
|
- no nvidia drivers
|
|
|
|
|
- may be janky in regards to running some Minecraft versions
|
|
|
|
|
musl upsides:
|
|
|
|
|
- ??
|
|
|
|
|
|
2023-06-13 08:25:52 +02:00
|
|
|
|
|
|
|
|
|
ideas:
|
|
|
|
|
use shell script for init, call real init via exec
|
|
|
|
|
system lives on squashfs
|
|
|
|
|
-> overlayfs with tmpfs set up at boot
|
|
|
|
|
-> new system image generated and written back on shutdown
|
|
|
|
|
-> user-selectable ("Do you want to save changes to the system? This will take some time.")
|
|
|
|
|
-> fstrim (if applicable)
|
|
|
|
|
swap on zram
|
|
|
|
|
f2fs for home
|
|
|
|
|
|
2023-06-27 15:41:16 +02:00
|
|
|
|
boot setup + dracut configuration
|
|
|
|
|
- root=/dev/loop0 ro
|
2023-06-28 13:02:25 +02:00
|
|
|
|
- custom dracut module
|
2023-06-27 15:41:16 +02:00
|
|
|
|
- pre-mount script
|
2023-06-28 19:55:09 +02:00
|
|
|
|
- mount /run/void-usb/container by UUID (passed from a kernel command line parameter)
|
2023-06-27 15:41:16 +02:00
|
|
|
|
- losetup the squashfs img
|
2023-06-28 13:02:25 +02:00
|
|
|
|
- pre-pivot script?
|
2023-06-28 19:55:09 +02:00
|
|
|
|
- do we need one to move over the /run/void-usb/container mount to real root?
|
2023-06-27 15:41:16 +02:00
|
|
|
|
- overlayfs gets mounted from fstab
|
|
|
|
|
|
2023-06-13 14:24:42 +02:00
|
|
|
|
when backing up
|
|
|
|
|
- do not cross file system boundaries
|
|
|
|
|
- exclude /tmp, package cache, logs
|
2023-06-20 13:19:28 +02:00
|
|
|
|
- possibly only save the changes in separate squashfs images
|
|
|
|
|
- either until it takes up too much space or until a certain number of images exist
|
|
|
|
|
- consolidate when the user requests it or when exceeding the limit
|
2023-06-13 14:24:42 +02:00
|
|
|
|
|
2023-06-13 08:25:52 +02:00
|
|
|
|
Steps to install:
|
2023-06-27 15:41:16 +02:00
|
|
|
|
- make our own or extract (if feasible) kb selection and time zone selection to hijack them for our purposes
|
2023-06-13 08:25:52 +02:00
|
|
|
|
- select kb layout
|
|
|
|
|
- install base system
|
|
|
|
|
-> select installation type (x86_32/x86_64/aarch64, glibc/musl)
|
2023-06-13 14:24:42 +02:00
|
|
|
|
-> if musl, add that bit to repo url
|
2023-06-13 08:25:52 +02:00
|
|
|
|
-> configure overlayfs setup
|
2023-06-14 09:37:16 +02:00
|
|
|
|
-> startup script
|
|
|
|
|
-> shutdown squashfs updater
|
|
|
|
|
-> rc.shutdown?
|
2023-06-27 15:41:16 +02:00
|
|
|
|
-> configure time zone
|
2023-06-14 09:37:16 +02:00
|
|
|
|
-> selection dialog?
|
|
|
|
|
-> symlink /etc/localtime
|
2023-06-27 15:41:16 +02:00
|
|
|
|
-> set up an initramfs to mount the squashfs/overlayfs at boot time
|
2023-06-13 08:25:52 +02:00
|
|
|
|
-> prepare 2nd stage installation
|
2023-06-27 15:41:16 +02:00
|
|
|
|
-> auto login root and put script in .bashrc
|
|
|
|
|
-> better method?
|
2023-06-13 08:25:52 +02:00
|
|
|
|
-> build squashfs
|
|
|
|
|
- prompt user to reboot to finish installation
|
|
|
|
|
- second stage installation
|
|
|
|
|
-> configure services
|
|
|
|
|
-> dbus
|
|
|
|
|
-> NetworkManager
|
|
|
|
|
-> acpid
|
|
|
|
|
-> ask user to connect to network using nmtui
|
|
|
|
|
-> install packages
|
|
|
|
|
-> setxkbmap xauth xorg-video-drivers mesa mesa-dri xorg-server elogind xorg-input-drivers xrandr acpilight xhost xinit xrdb xinput xgamma xset iceauth sessreg transset xcmsdb xkbutils xmodmap dejavu-fonts-ttf
|
2023-06-13 14:24:42 +02:00
|
|
|
|
-> terminal?
|
|
|
|
|
-> browser?
|
|
|
|
|
-> prism launcher
|
2023-06-14 09:37:16 +02:00
|
|
|
|
-> java (multiple versions?)
|
2023-06-13 14:24:42 +02:00
|
|
|
|
-> pipewire (pulsemixer?)
|
2023-06-13 08:25:52 +02:00
|
|
|
|
-> ask about nvidia driver
|
|
|
|
|
-> install if needed
|
2023-06-20 13:19:28 +02:00
|
|
|
|
-> find out when and where to set `nvidia-drm.modeset=1`
|
2023-06-13 08:25:52 +02:00
|
|
|
|
-> ask whether to use CTWM or IceWM
|
|
|
|
|
-> short description of up and downsides
|
|
|
|
|
-> if CTWM, also install
|
|
|
|
|
-> xclock
|
|
|
|
|
-> if IceWM, also install
|
|
|
|
|
-> network-manager-applet
|
|
|
|
|
-> sound applet
|
|
|
|
|
-> configure zram swap
|
|
|
|
|
-> passwd -l root
|
|
|
|
|
-> populate /etc/skel
|
|
|
|
|
-> ultimate bashrc bc why not
|
|
|
|
|
-> first run message in xinitrc
|
|
|
|
|
-> auto-deletes itself
|
|
|
|
|
-> displays README.txt on root dir of the F2FS partition
|
|
|
|
|
-> if using CTWM
|
|
|
|
|
-> put xclock in xinitrc
|
|
|
|
|
-> configure more sane defaults
|
|
|
|
|
-> prepend bashrc with a thing that checks of xorg is running
|
|
|
|
|
-> if not, run startx and ask user whether to shut down, reboot, or do nothing afterwards
|
|
|
|
|
-> set up user
|
|
|
|
|
-> ask for username
|
|
|
|
|
-> run useradd (non-interactively)
|
|
|
|
|
-> run passwd (interactively)
|
|
|
|
|
-> add to groups
|
|
|
|
|
-> including sudo group
|
|
|
|
|
-> build new squashfs image and reboot
|