You are not logged in.

#1 2012-06-07 17:41:35

aIien
Member
Registered: 2008-08-11
Posts: 7

[SOLVED] upgrade overrides custom symbolic links?

Hello

After regular upgrade my Archlinux got broken.
The reason was that my /usr/share symbolic link, which points to a folder on other partition (space problem)  was deleted and replaced with a virgin /usr/share/ folder.  After restoring original symlink and reinstalling some packages everything works again.

Is it posible the pacman or some bad package caused this symlink deletion and how can i prevent this in the future?

Last edited by aIien (2012-06-08 16:36:25)

Offline

#2 2012-06-08 02:28:19

bergersau
Member
Registered: 2012-01-19
Posts: 52

Re: [SOLVED] upgrade overrides custom symbolic links?

I'm no expert, but today there was a file system update that also required manual intervention.  It may have been this that caused your issue.
Always check the Latest news on http://www.archlinux.org/ before updating.

Offline

#3 2012-06-08 02:45:44

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: [SOLVED] upgrade overrides custom symbolic links?

Did you use --force?

Offline

#4 2012-06-08 16:22:20

aIien
Member
Registered: 2008-08-11
Posts: 7

Re: [SOLVED] upgrade overrides custom symbolic links?

Allan wrote:

Did you use --force?

no i didn't.  And the problem occured on 2012-06-03.

Maybe i should create a package owning this symlink, so i get at least
a warning if some package try to override it? The best solution would be
to mount /usr/share to an extra partition.

This case is solved for me now, but maybe it could be usefull for someone
else in the future.  Should i mark this thread [solved]?

Last edited by aIien (2012-06-08 16:24:00)

Offline

#5 2012-06-08 16:24:31

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] upgrade overrides custom symbolic links?

alien wrote:

Should i mark this thread [solved]?

please do.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2012-06-08 23:41:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: [SOLVED] upgrade overrides custom symbolic links?

aIien wrote:
Allan wrote:

Did you use --force?

no i didn't.  And the problem occured on 2012-06-03.

Pacman will not overwrite a symlink with a directory unless --force is used...

Offline

#7 2012-06-09 15:33:58

aIien
Member
Registered: 2008-08-11
Posts: 7

Re: [SOLVED] upgrade overrides custom symbolic links?

Allan wrote:
aIien wrote:
Allan wrote:

Did you use --force?

no i didn't.  And the problem occured on 2012-06-03.

Pacman will not overwrite a symlink with a directory unless --force is used...

I think i figured out what went wrong, it was just an accident, my own mistake:

After upgrade i was unable to boot because of missing 'usr'-hook in /etc/mkinitcpio.conf prior to mkinitcpio-invocation during upgrade (/usr/ is separate partition).  So in order to correct this i had to chroot from live-CD, add usr-hook and rebuild initial ramdisk.  At this point i forget to mount the drive where /usr/share-symlink should point to.  So /usr/share was a broken link and some commands e.g. mkinitcpio didn't work.  I tried to fix this and reinstalled some packages whose files were missing.  I think the broken link got replaced by pacman during unpacking.  Is this what should happen in case of broken link?  Sounds logical for me.  I'm pretty sure i didn't use --force flag.

Afterwards i restored symbolic link and reinstalled packages which i installed in chroot.  Now i think my system is healthy again.

Last edited by aIien (2012-06-09 15:54:46)

Offline

#8 2012-06-10 10:36:41

kriz
Member
Registered: 2009-06-29
Posts: 96

Re: [SOLVED] upgrade overrides custom symbolic links?

not solved for me.
i'm using systemd. booted with sysvinit to upgrade but it didn't work.
my arch claims that /var/lock is busy, so i can't be removed, even at boot time this message pops up.
i tried removing directories and using the force option. neiher did work.
help plz


„Je verdinglichter die Welt, je dichter das Netz, das der Natur überworfen wurde, desto mehr beansprucht ideologisch das Denken, das jenes Netz spinnt, seinerseits Natur, Urerfahrung zu sein." Theodor W. Adorno [aus: Wozu noch Philosopie]

Offline

#9 2012-06-10 19:47:09

aIien
Member
Registered: 2008-08-11
Posts: 7

Re: [SOLVED] upgrade overrides custom symbolic links?

Your problem seems to be about this:
www.archlinux.org/news/filesystem-upgrade-manual-intervention-required-1/

Btw. You should start a new thread if you need help, because it's not related to this one.  You would get more attention from forum users then.

Offline

Board footer

Powered by FluxBB