bajia/etc/initramfs.rc

19 lines
670 B
Text
Raw Normal View History

2026-08-28 23:24:19 +01:00
# 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