Update 02_build_img.sh

This commit is contained in:
superconvert 2022-07-28 00:08:49 +08:00 committed by GitHub
parent 4efbc9e4a5
commit 2297c26878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,6 @@ cat<<"EOF">etc/inittab
::restart:/sbin/init ::restart:/sbin/init
::ctrlaltdel:/sbin/reboot ::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r ::shutdown:/bin/umount -a -r
::respawn:/bin/cttyhack /bin/sh
tty1::once:echo "hello smart-os tty1" tty1::once:echo "hello smart-os tty1"
tty1::respawn:/bin/sh tty1::respawn:/bin/sh
tty2::once:echo "hello smart-os tty2" tty2::once:echo "hello smart-os tty2"
@ -193,7 +192,7 @@ cat - > ${diskfs}/boot/grub/grub.cfg << EOF
set timeout=6 set timeout=6
menuentry "smart-os" { menuentry "smart-os" {
root=(hd0,msdos1) root=(hd0,msdos1)
linux /boot/bzImage console=tty0 console=ttyS0 linux /boot/bzImage console=tty0
initrd /boot/initrd initrd /boot/initrd
} }
EOF EOF