summaryrefslogtreecommitdiff
path: root/configure-image.sh
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-11-11 10:06:56 -0500
committerAlexander Hill <ahill@breadpudding.dev>2025-11-11 10:06:56 -0500
commit8bd73c53fceec182c8e9908ac64cf25a05ddf45d (patch)
tree2dc706a9304db716d4843783335679a1235cd75b /configure-image.sh
parent5484dbc5de255c56766f66d0c1d7afdcf988ee99 (diff)
Started bootstrapping with treetap
Diffstat (limited to 'configure-image.sh')
-rw-r--r--configure-image.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/configure-image.sh b/configure-image.sh
deleted file mode 100644
index 7d89dbb..0000000
--- a/configure-image.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh -e
-
-# fstab Generation
-# TODO: Is the dump column still used today? ~ahill
-# NOTE: /dev is not here because CONFIG_DEVTMPFS_MOUNT is enabled in the Linux
-# kernel configuration. ~ahill
-echo "/dev/vda2 / xfs defaults 1 1" > /etc/fstab
-echo "/dev/vda1 /boot vfat defaults 0 2" >> /etc/fstab
-echo "proc /proc proc nosuid,noexec,nodev 0 0" >> /etc/fstab
-echo "sysfs /sys sysfs nosuid,noexec,nodev 0 0" >> /etc/fstab
-echo "devpts /dev/pts devpts defaults 0 0" >> /etc/fstab
-echo "tmpfs /run tmpfs defaults 0 0" >> /etc/fstab
-echo "tmpfs /dev/shm tmpfs nosuid,nodev 0 0" >> /etc/fstab
-echo "cgroup2 /sys/fs/cgroup cgroup2 nosuid,noexec,nodev 0 0" >> /etc/fstab
-
-# initramfs Generation
-mkdir -p /etc/tinyramfs
-echo "root=/dev/vda2" > /etc/tinyramfs/config
-echo "root_type=xfs" >> /etc/tinyramfs/config
-# FIXME: Setting monolith to true is a workaround since tinyramfs searches for
-# /sbin/kmod, which doesn't work since kmod is installed under /bin.
-# While kmod *should* be moved under /sbin, tinyramfs also shouldn't
-# hard-code paths like that, so we need a way to patch this going
-# forward. Without a proper patch, kernel modules cannot be added to the
-# initramfs, which will cause issues with drivers later on. ~ahill
-echo "monolith=true" >> /etc/tinyramfs/config
-# TODO: This is a terrible way to detect the kernel version, since anything
-# else under /lib/modules will cause this to break, such as having
-# multiple kernel versions present. ~ahill
-tinyramfs -k $(ls /lib/modules) /boot/initramfs \ No newline at end of file