pacman's NoUpgrade option does not ignore read-only files

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



Hello list,

I can't get pacman to ignore read-only files via the the NoUpgrade
and/or the NoExtract config options.

I have several Arch Linux LXC (managed via LXD) containers, with several
read-only files mapped into those containers for convenience. For
example, to have a single resolv.conf for all containers, I configured
the following in LXD:

devices:
  resolv_conf:
    path: /etc/resolv.conf
    readonly: "true"
    source: /root/containerfiles/resolv.conf
    type: disk

Now the problem is, when I want to run upgrades in containers, the
pacman check for disk space fails with:

error: Partition /etc/resolv.conf is mounted read only

According to man pacman.conf, setting "etc/resolv.conf" in NoUpgrade
should *in theory* get around this problem for my understandings, but it
somehow doesn't. Also setting both does not work:

NoUpgrade   = etc/resolv.conf
NoExtract   = etc/resolv.conf

Am I missing something out here? Is there any way to accomplish what I
want or do I really have to work with a pacman hook here which copies
the read only mounted file to the original place after a package upgrade?

Thanks & kind regards,

Marcel Menzel



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux