From 93f35914637f53007f4fddb4d64069612c7b2b2f Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Mon, 8 Jun 2026 19:59:29 +1200 Subject: Fix init issue and work on making graphical tty show --- nix/rootfs.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nix/rootfs.nix') diff --git a/nix/rootfs.nix b/nix/rootfs.nix index fc5d321..d463af7 100644 --- a/nix/rootfs.nix +++ b/nix/rootfs.nix @@ -1,15 +1,17 @@ -{ stdenv, fetchgit, busybox, squashfsTools }: +{ stdenv, fetchgit, busybox, squashfsTools, linuxHeaders }: stdenv.mkDerivation { name = "rootfs-yerba"; src = ./.; buildInputs = [ squashfsTools ]; - nativeBuildInputs = [ squashfsTools ]; + nativeBuildInputs = [ squashfsTools linuxHeaders ]; buildPhase = '' mkdir -p rootfs mkdir -p rootfs/{bin,sbin,etc,proc,sys,dev,home,var,usr,root,mnt,tmp} cp -a ${busybox}/_install/. rootfs/ - # this says permission denied, cant be bothered to debug, let's just hope we can chroot to /sbin/init in the initramfs and it works? + chmod -R u+w rootfs + ln -sf bin/busybox rootfs/init + ln -sf bin/busybox rootfs/sbin/init # ln -sf sbin/init rootfs/init echo "proc /proc proc defaults 0 0" > rootfs/etc/fstab echo "sysfs /sys sysfs defaults 0 0" >> rootfs/etc/fstab -- cgit v1.2.3