[Bug 207377] [10.3-BETA2] freebsd-update relying on kern.bootfile copies around entire filesystem
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 20 20:39:40 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207377
Bug ID: 207377
Summary: [10.3-BETA2] freebsd-update relying on kern.bootfile
copies around entire filesystem
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: h2+fbsdports at fsfe.org
I am just updating to 10.3-BETA2 with freebsd-update and it starting copying my
entire filesystem into /boot/kernel.old/
After some debugging I found out that this is due to a mechanism where it
detects the kernel dir from kern.bootfile. Since I have a slightly more
sophisticated setup where I use grub, this variable ends up being /kernel
=> freebsd-update assumes that / is the kerneldir and copies *everything* into
the backup dir as mentioned above.
I think this is bad behaviour, a smart thing would be to check if the directory
pointed to by kern.bootfile actually contains a kernel file, and if not ask the
user to specify the directory or skip the backup process entirely. Most users
rely on snapshots nowadays so this step is not really crucial.
And / should never be accepted as KERNELDIR IMHO.
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list