Bug 274522

Summary: VM image's rc.conf has many repeated lines
Product: Base System Reporter: Cameron Katri <me+fbsd>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Some People CC: emaste, pat, void
Priority: ---    
Version: 14.0-STABLE   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 271607    

Description Cameron Katri 2023-10-16 20:14:56 UTC
The FreeBSD-14.0-RC1-arm64-aarch64-zfs.raw.xz VM image (maybe others, I didn't 
check) has a rc.conf with a ton of repeated lines. I tried looking at 
why this would be, but the release scripts to create this image went 
right over my head.

$ sudo mdconfig FreeBSD-14.0-RC1-arm64-aarch64-zfs.raw
md0
$ sudo zpool import -R /mnt -t 4016146626377348012 vm-zpool
$ wc -l /mnt/etc/rc.conf
       36 /mnt/etc/rc.conf
$ sort -u /mnt/etc/rc.conf
growfs_enable="YES"
hostname="freebsd"
ifconfig_DEFAULT="DHCP inet6 accept_rtadv"
zfs_enable="YES"
zpool_reguid="zroot"
zpool_upgrade="zroot"
$

https://lists.freebsd.org/archives/freebsd-current/2023-October/004824.html
Comment 1 Graham Perrin 2023-10-17 12:12:40 UTC
^Triage: 

* status
* higher severity (inferred from discussion in IRC).
Comment 2 Cameron Katri 2023-10-17 22:24:47 UTC
I just checked and it also effects amd64 and UFS images.