Date: Mon, 18 Dec 2006 00:37:51 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-questions@freebsd.org Subject: Re: rm -f doesn't delete symlink Message-ID: <4586535F.5040806@u.washington.edu> In-Reply-To: <20061218073239.E9100E05B3@smtp1.galnet.dk> References: <20061217203138.EFA38E0625@smtp1.galnet.dk> <4585B030.3090809@u.washington.edu> <20061217211130.EC1C8E0600@smtp1.galnet.dk> <4585CD84.4060807@u.washington.edu> <20061218073239.E9100E05B3@smtp1.galnet.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeppe Bundsgaard wrote: > At 00:06 18-12-2006, you wrote: >> Jeppe Bundsgaard wrote: >>> At 22:01 17-12-2006, you wrote: >>>> Jeppe Bundsgaard wrote: >>>>> >>>>> Hi, >>>>> I am trying to upgrade to FreeBSD 6.1. But when I run installworld >>>>> it halts when trying to create a symlink: /sys. Just before the >>>>> error the script tries to delete the old symlink with: rm -f /sys. >>>>> But this doesn't delete the symlink. >>>>> No flags are set on /sys. >>>>> Anybody got any idea what is wrong? >>>>> Thanks. >>>>> Jeppe >>>> Jeppe, >>>> Try without the -f and see what the error is. -f (in my book at >>>> least) usually evaluates to (yes, quiet) in regular files / symlinks >>>> at least. >>>> -Garrett >>>> _ >>> >>> Garrett, thanks for your answer. >>> >>> -f Attempt to remove the files without prompting for confirmation, >>> regardless of the file's permissions (cf. man rm) >>> >>> even rm -v says nothing. But /sys still exist... >>> Jeppe >> Tried unlink(1)? Shouldn't really have to use it at all, but it could >> solve your problem faster.. >> -Garrett > > Yes, and even if it helped it wouldn't solve the problem that > installworld uses rm -f /sys > Jeppe Well, try it anyhow though, and then try recreating the symlink after the fact, just to see if installworld goes through properly. Also, just out of curiousity (before you unlink the symlink)--what version of FreeBSD are you upgrading from and what are the current permissions / ownership for /sys? My /sys: [gcooper@sprsd ~]$ ls -l / | grep sys lrwxr-xr-x 1 root wheel 11 Dec 17 22:47 sys -> usr/src/sys Cheers, - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFhlNeEnKyINQw/HARAglwAKCpwuxPcJ1SIDzrjoa873TP5REW2QCeOuys Exmg1xcYdR0zwC/EU8n1HZ0= =KnYT -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4586535F.5040806>