Remix.run Logo
checker659 4 days ago

Pass init=/bin/sh or what have you in GRUB cmdline

tosti 4 days ago | parent | next [-]

Traditionally,

    init=/etc/rc
And have that be a shell script which starts whatever you need. You'll probably want fsck in there, mount -a, some syslogd, perhaps dbus, some dhcp client, whatever else you need, and finally the getty which is probably a good idea to respawn after it exits. That's usually the job of init so you could well end your rc with exec /sbin/init
opello 4 days ago | parent | prev [-]

I'm sure it's useful elsewhere, but I have used this for years to debug embedded Linux environments, it's such a handy tool.