First commit

This commit is contained in:
2025-11-17 06:58:20 -07:00
parent 8afca01a8f
commit d95e1939a2
54 changed files with 696 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo "Enabling Flathub..."
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo "Enabling scx-scheds..."
systemctl enable scx.service

View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo "Fixing os-release..."
rm /etc/os-release
ln -s /usr/lib/os-release /etc/os-release

View File

@@ -0,0 +1,44 @@
#!/bin/bash
set -e
echo "[HOOK] Generating initramfs for XanMod kernel..."
# Ensure necessary filesystems are mounted
mount -t proc proc /proc || true
mount -t sysfs sys /sys || true
mount -t devtmpfs dev /dev || true
# Find installed XanMod kernel version
KVER=$(ls /lib/modules | grep xanmod | head -n 1 || true)
if [ -n "$KVER" ]; then
echo "Found XanMod kernel version: $KVER"
# Ensure initramfs-tools is available
if command -v update-initramfs >/dev/null 2>&1; then
update-initramfs -c -k "$KVER"
else
echo "Error: update-initramfs not found inside chroot!"
fi
else
echo "Warning: XanMod kernel modules not found in /lib/modules"
fi
# Create symlinks for live-build to pick up
KERNEL_IMG=$(ls /boot/vmlinuz-*xanmod* 2>/dev/null || true)
INITRD_IMG=$(ls /boot/initrd.img-*xanmod* 2>/dev/null || true)
if [ -n "$KERNEL_IMG" ] && [ -n "$INITRD_IMG" ]; then
echo "Detected XanMod kernel: $KERNEL_IMG"
mkdir -p /live
ln -sf "$KERNEL_IMG" /live/vmlinuz
ln -sf "$INITRD_IMG" /live/initrd.img
else
echo "Warning: Kernel or initrd image still missing!"
ls -lh /boot || true
fi
# Cleanly unmount if we mounted them
for mnt in /dev /sys /proc; do
mountpoint -q "$mnt" && umount "$mnt" || true
done

View File

@@ -0,0 +1,4 @@
#!/bin/bash
echo "I: running $0"
dpkg --add-architecture i386
apt update

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/1000-create-mtab-symlink.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/1010-enable-cryptsetup.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/1020-create-locales-files.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/5000-update-apt-file-cache.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/5010-update-apt-xapian-index.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/5020-update-glx-alternative.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/5030-update-plocate-database.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/5040-update-nvidia-alternative.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/5050-dracut.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8000-remove-adjtime-configuration.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8010-remove-backup-files.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8020-remove-dbus-machine-id.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8030-truncate-log-files.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8040-remove-mdadm-configuration.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8050-remove-openssh-server-host-keys.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8060-remove-systemd-machine-id.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8070-remove-temporary-files.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8080-reproducible-glibc.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8090-remove-ssl-cert-snakeoil.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8100-remove-udev-persistent-cd-rules.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/8110-remove-udev-persistent-net-rules.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/9000-remove-gnome-icon-cache.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/9010-remove-python-pyc.hook.chroot

View File

@@ -0,0 +1 @@
/usr/share/live/build/hooks/normal/9020-remove-man-cache.hook.chroot