Bug 180078 - [patch] mkisoimages.sh(8): make /etc and /var writable on CD media
Summary: [patch] mkisoimages.sh(8): make /etc and /var writable on CD media
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 04:20 UTC by Enji Cooper
Modified: 2017-12-31 22:24 UTC (History)
0 users

See Also:


Attachments
file.diff (4.22 KB, patch)
2013-06-29 04:20 UTC, Enji Cooper
no flags Details | Diff
writable-etc-and-var-on-iso-images.patch (4.56 KB, patch)
2013-07-05 02:09 UTC, Enji Cooper
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer 2013-06-29 04:20:00 UTC
The attached patch makes /etc/ and /var/ writable via /etc/rc.initdiskless which allows me to use /etc and /var as volatile filesystems [until reboot], accomplishing some of the following basic tasks:

- Starting the hostid service (needed for doing things with ZFS).
- Starting sshd (otherwise it can't write out keys to /etc/ssh/ .
- Setting passwords / adding custom users.
- Start dhclient (dhclient requires write access to /etc/resolv.conf and /var/run/{interface}.leases

Etc.

Fix: Patch attached with submission follows:
Comment 1 Glen Barber freebsd_committer 2013-06-29 04:30:15 UTC
Responsible Changed
From-To: freebsd-bugs->re

re@ territory.
Comment 2 Enji Cooper freebsd_committer 2013-07-05 02:09:12 UTC
	Here's a more functional patch that applies the same set of basic logic as nanobsd.sh does to make /etc and /var writable.
Cheers,
-Garrett
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:16 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped