[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#220550: base-installer: should take into account that deboostrap is not idempotent



OK, I've got a patch ready for this, which simply stats /target/bin/sh and
uses that as a heuristic of an already existing install (which would make
debootstrap fail). This would fail if an old /usr partition was mounted
inside a fresh / partition, but it would at least help in 95% of the cases.
(I could of course simply stat /target/usr/bin/awk too, or simply even
/target/usr/bin; that would solve the /usr problems. :-) )

The problem is what we do if the user wants to remove everything. Can I do a
system("rm -rf /target/*")? (The user would have to be informed very clearly
that this will remove everything on ALL partitions...) Or should I simply
tell the user to always go back to partconf and clear the partitions from
there? Apart from that and some testing, I believe the patch should be
working OK.

/* Steinar */
-- 
Homepage: http://www.sesse.net/




Reply to: