Bug 137864 - [patch] sysinstall(8): add possibility to shutdown/poweroff without modifying /etc/rc.conf
Summary: [patch] sysinstall(8): add possibility to shutdown/poweroff without modifying...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-17 07:10 UTC by Michael Leun
Modified: 2015-11-10 09:07 UTC (History)
0 users

See Also:


Attachments
file.txt (4.43 KB, text/plain)
2009-08-17 07:10 UTC, Michael Leun
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Leun 2009-08-17 07:10:05 UTC
I've created customized install disks doing an unattended installation of the current (current when creating the disk) patchlevel of FreeBSD.
At the end of the installation a customized package which brings some configuration files, changes some config and creates /etc/rc.conf from scratch is installed.
But with unmodified sysinstall all changes made in the post install script of the custom package get clobbered / commented out.

My search for a solution lead to http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/107861.html

This patch adds an option "shutdownNoRC" to shutdown without touching /etc/rc.conf (and also "poweroff" to just power off and "poweroffNoRC" to power off without touching rc.conf) at the end of the installation.

Note: This fixes bin/69942.

Fix: Patch attached
Adds alternate commands to quit installation, offering the possibility not to change / create /etc/rc.conf by sysinstall.

Patch attached with submission follows:
How-To-Repeat: Create an custom install media which installs a package modifying /etc/rc.conf
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2010-07-13 14:36:38 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-sysinstall

Over to maintainer(s)
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:07:49 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.