Bug 12050

Summary: No /sbin/init on fixit flop
Product: Base System Reporter: jhs <jhs>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   

Description jhs freebsd_committer freebsd_triage 1999-06-06 14:10:01 UTC
	If /sbin/init is destroyed or corrupted, boot -s fails, 
	you have no spare init to copy in, you are stuck !

Fix: 

Ideally, put an /sbin/init on fixit floppy, but no space:
		tunefs -m 0  /dev/rfd0c
		df /dev/rfd0c		# 72 K free
		cp /sbin/init /tmp
		gzip /tmp/init		# 109 K
	maybe there's room on the 2nd boot disc was introduced with 3.2 ?

	Or maybe we should introduce a fixit.extras floppy ?
	I suspect other files might also be needed on there ?
How-To-Repeat: 
	chmod -x /sbin/init
	boot -s	# Fail to boot off hard disc
	Boot with fixit floppy, mount your hard drives
		find / -name init -print
	chmod +x /sbin/init # to rescue yourself from the simulation
	Now think: "how could I copy in a new init if mine was damaged ?"
Comment 1 Alfred Perlstein freebsd_committer freebsd_triage 2000-06-06 10:47:14 UTC
State Changed
From-To: open->closed

Answered own question, yes the solution is a custom fixit.flp.