b h wrote: > Hi > Okay, I feel really stupid, but that's beside the > point. I need to be able to recover this machine. > It's running current built from src as of November 7. > > I was brilliantly removing my src directory with a rm > -rf * to get a completely fresh tree, when I realized > I was a directory too high, running that command from > /usr.... after immediately stopping it, I noticed the > bin directory gone (and I figure there is some missing > from the dest directory too -- this is all presuming > that rm -rf goes alphabetically)...
dangerous assumption. I'm not sure you are wrong, but I don't know that you are right, either. I'm thinking I've seen evidence that under some conditions, it does not sort them. But someone will probably tell me I'm wrong. :) > > what is my best bet here? The system is still up and > running. I presume it is to get some of the install > sets and unpack them -- I would rather *not* like to > do a reinstall. Which install sets do I need > (presuming from the most recent snapshot, following > instructions from 4.10 of FAQ). I figure I need > > comp38.tgz > base38.tgz > misc38.tgz basically, yes. Depends on if /usr/local got hit at all. > Maybe I don't need all three of these? Why are you trying to do the absolute minimum? There is NO point. IF you installed from snapshot or tarballs you made and still have, install ALL of them except for etc38.tgz. Then you are probably done. As you say you upgraded from source, you probably don't have the *.tgz files that match your existing system, I'd just grab the -current snapshot, and install that over your existing install, again, all file sets other than etc38.tgz and xetc38.tgz, and the new kernels. Done. If you use any other file sets, you will end up with a "mixed" system -- it might work, it might blow up in your face, probably something between the two. Just do it right. > Anything else > or other gotchas I should look out for? Can I safely > reboot after untarring the above? Then after that I > presume I can safely build from a newly checked out > src again (being more careful)? Just install the snapshot. Stop. You don't need to build it from source. You will probably need to boot from a bsd.rd kernel, as you probably killed /usr/bin/gzip (and ftp, and ...), needed to unpack the tgz files...just say "upgrade", pull down pub/OpenBSD/snapshots/<whatever>, from your favorite mirror, it will unpack what you need where you need it, and not break what is currently there. Actually, were I to guess, your bsd.rd is probably old, you didn't rebuild that, did you? So you probably need to get a -current bsd.rd on the system to do a good upgrade. boot off your bsd.rd, chose upgrade, wait until it sets up your network. Drop to shell, make sure you have / mounted on /mnt (or wherever), and ftp a new bsd.rd. Now, reboot off that one, otherwise you will have a failure when you try to rebuild /dev. Probably not a fatal error, you could probably reboot after the upgrade successfully and "MAKEDEV all". See? Would have been easier to upgrade via snap...you would have a more -current bsd.rd. :) Nick.