Bug 221955 - /etc/rc.conf should be copied first time from the /msdos file system
Summary: /etc/rc.conf should be copied first time from the /msdos file system
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-31 10:20 UTC by Tarjei Jensen
Modified: 2017-08-31 11:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tarjei Jensen 2017-08-31 10:20:23 UTC
The arm servers like the Raspberry PI 3 get their operating system by copying an image to a memory card. That image contains a MSDOS compatible partition which contains files that can be edited on e.g. windows.

Being able to edit the future rc.conf file would allow us to edit the name of the server, make sure that growfs is enabled, enable ntpd, etc.

By renaming the file fter use, we have a track record of the inital config and if neccessary it can be done again.

Ideally there should also be a possibility to define a non-root account that is to be created the first time. Several FreeBSD derivatives uses different accounts. It would be nice to be able to log on regardless of what account they have decided on.

The definition of the account should be overwritten once it has been created to ensure that the password cannot be recovered after the account has been created.
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2017-08-31 11:00:58 UTC
The rc.conf file always existed only in UFS and it will stay that way.
The images generated by the release engineering team ensure that the system will boot and that the user can login either by ssh on using the serial console to modify it according his needs.
Thoses images have a 'freebsd' account with the password 'freebsd'.