Bug 62702 - sysinstall(8): backup of /etc and /root during sysinstall upgrade can loop if user backs up /etc in /root tree
Summary: sysinstall(8): backup of /etc and /root during sysinstall upgrade can loop if...
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.5-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 20:50 UTC by Scott Anderson
Modified: 2015-11-10 09:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Anderson 2004-02-11 20:50:15 UTC
While attempting an upgrade (using '/stand/sysinstall installUpgrade') I
ran into a problem where files are copied, hit a recursive loop and
potentially continue being copied until the partition is full.

When upgrading via sysinstall, the user (admin) is prompted for a location
to backup /etc, if the user backs this up in the /root tree, this problem
will be encountered.  Selecting /root doesn't seem like a bad place, and
the user isn't warned the next automatic step is that /root will be backed
up into the backup of /etc (thus creating the loop).  

A simple prompt not to backup /etc into the /root tree would suffice, or
preventing this in the script might be helpful.

How-To-Repeat: '/stand/sysinstall installUpgrade'
Choose to backup /etc into /root (/root/backup/etc or some such)

Watch it take a long,long time to backup, wonder what is going on,go have
a look in /root/backup/etc and find the huge recursive copy happening
(/root/backup/etc/root/backup/etc/root/backup/etc...). :)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-08-29 06:27:05 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-qa

sysinstall problem.
Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2010-07-13 14:49:11 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-sysinstall

Over to maintainer(s)
Comment 3 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:08:21 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:12:15 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.