Bug 12050 - No /sbin/init on fixit flop
Summary: No /sbin/init on fixit flop
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 3.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-06-06 14:10 UTC by jhs
Modified: 2000-06-06 10:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.