Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: zithro Newsgroups: linux.debian.user Subject: Re: usrmerge on root NFS will not be run automatically Date: Fri, 08 Sep 2023 17:00:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-user-request@lists.debian.org Fri Sep 8 14:55:47 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Gm-Message-State: AOJu0YyC3+lbNNfcEZDDTlcOCuOgyodvDRzzrgmE/q7rSd/2JE/zqP3n LE+b3yoLGOuYF8dpPvGLIxww56bBF5dV6fH2Q3I= X-Google-SMTP-Source: AGHT+IEqJNX9GVn5bbXrsMCZoRCldwYNOzwApcmLFT53TDC8I3cTaVL8DmZFR1DR/333/KUTO/BJiQ== X-Received: by 2002:a05:600c:2307:b0:401:38dc:891c with SMTP id 7-20020a05600c230700b0040138dc891cmr2363051wmo.5.1694184924722; Fri, 08 Sep 2023 07:55:24 -0700 (PDT) MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailing-List: archive/latest/803214 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/fb218c4e-c910-fc79-7dd5-9f4712c7afc4@rabbit.lu Approved: robomod@news.nic.it Lines: 56 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 8 Sep 2023 16:55:23 +0200 X-Original-Message-ID: X-Original-References: <20230908125408.7d35c8cb@homerow> Xref: csiph.com linux.debian.user:261559 On 08 Sep 2023 12:54, Marco wrote: > Warning: NFS detected, /usr/lib/usrmerge/convert-usrmerge will not be run > automatically. See #842145 for details. Read : - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842145 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1039522 The solution would be : "convert-usrmerge can be run in a chroot on the NFS server" If your NFS server is not Linux-based, carefully copy the files over a Linux machine, chroot+convert there, then move back to the NFS server. Make backups ;) Can help: https://unix.stackexchange.com/questions/312218/chroot-from-freebsd-to-linux As per the why, I don't know. Maybe the symlink handling by NFS ? Reading the script "/usr/lib/usrmerge/convert-usrmerge", you get the reasons why it fails : 142 # The other cases are more complex and there are some corner cases that 143 # we do not try to resolve automatically. 144 145 # both source and dest are links [...] 168 # the source is a link [...] 175 # the destination is a link [...] 191 # both source and dest are directories 192 # this is the second most common case You may change the script to detect where/why it fails, so edit fatal("Both $n and /usr$n exist"); to fatal("Both $n and /usr$n exist - err line 145"); fatal("Both $n and /usr$n exist - err line 168"); Also found this on "https://en.opensuse.org/openSUSE:Usr_merge#Known_Problems" : - "File systems that do not support RENAME_EXCHANGE such as ZFS or NFS cannot perform live conversion (Bug 1186637)" - "Conversion fails if there's a mount point below (/usr)/{bin,sbin,lib,lib64}" Good luck -- ++ zithro / Cyril