add logging and other things

This commit is contained in:
Hedy88 2026-08-28 23:24:19 +01:00
commit 067cadbe0f
No known key found for this signature in database
10 changed files with 870 additions and 98 deletions

19
etc/initramfs.rc Normal file
View file

@ -0,0 +1,19 @@
# bajia initramfs.rc - first-stage init config for a classic two-stage boot.
#
# adjust the root device path below to match your hardware/rootfs setup.
on early-init
mount proc /proc proc
mount sysfs /sys sysfs
mount devtmpfs /dev devtmpfs
on init
# mount the real root filesystem (reuse `mount SOURCE TARGET FSTYPE`).
# typical alternatives: `mount /dev/mmcblk0p2 /mnt/root ext4`,
# an NFS root, or cryptsetup/LVM set up by earlier `exec` commands.
mkdir /mnt/root 0755
mount /dev/sda1 /mnt/root ext4
# the last trigger: pivot onto the real root and exec the real init.
on boot
switch_root /mnt/root /sbin/init /etc/bajia/init.rc