Bug 180078

Summary: [patch] mkisoimages.sh(8): make /etc and /var writable on CD media
Product: Base System Reporter: Enji Cooper <ngie>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
writable-etc-and-var-on-iso-images.patch none

Description Enji Cooper freebsd_committer freebsd_triage 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 freebsd_triage 2013-06-29 04:30:15 UTC
Responsible Changed
From-To: freebsd-bugs->re

re@ territory.
Comment 2 Enji Cooper freebsd_committer freebsd_triage 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
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:36:33 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>