add logging and other things
This commit is contained in:
parent
a4650fd589
commit
067cadbe0f
10 changed files with 870 additions and 98 deletions
19
etc/initramfs.rc
Normal file
19
etc/initramfs.rc
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue