私は、Linuxカーネルのブートにファイルシステムとしてinitramfsを使用しようとしています。 私はファイルシステムを最小限にしたいので、私はrootfsなしでinitramfsだけを使います。いったんカーネルが起動すると、initramfsから/ initが実行されます。私は以下のようにprocとsysfsをinitにマウントしようとしました。rootfsのないベアなinitramfsの使用
#!/bin/busybox sh
echo "Mounting Proc and Sysfs"
# Mount the /proc and /sys filesystems.
mount -t proc none /proc
mount -t sysfs none /sys
さらに、私はinitramfsでコマンドプロンプトを表示するために追加する必要があります。私は上記のinitコマンドを実行すると、以下のエラーが発生しました。
New FileSystem
Mounting Proc and Sysfs
This script just
[ 4.524724] sh (116) used greatest stack depth: 13832 bytes left mounts and boots the rootfs, nothing else!
[ 4.537448] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 4.537448]
[ 4.537453] CPU: 0 PID: 1 Comm: init Not tainted 4.1.17-ltsi-rt18 #4
フォーマットを修正してください –