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

Re: [PATCH] install.sh: Preserve directory symlinks



Hi,

On 3/16/26 16:37, Jason Andryuk wrote:
> On 2026-03-13 13:25, Thierry Escande wrote:
>> In various distros (i.e. Debian) some folders like /lib or /var/run are
>> symlinks. Using the tar option --keep-directory-symlink preserves these
>> symlinks.
>>
>> Signed-off-by: Thierry Escande <thierry.escande@xxxxxxxxxx>
>
> Coincidentally, I hit this last week.  I think the commit message should
> be expanded because it resulted in a non-functioning system.  I switched
> to make debball, but thanks for fixing this.
>
> I saw Ubuntu's /lib -> /usr/lib symlink replaced with a directory for /
> lib/systemd/system/xen-watchdog-sleep.sh.  With /lib broken, systemd (/
> sbin/init) could not start and boot fails.
>
> The fix was easy -  just restoring the /lib symlink.
>
> So maybe add "Replacing the /lib symlink with a directory results in a
> non-functioning system."?
>
> I thought /var/run was addressed by:
> Fixes: 9d628ff6cc21 ("tools: Fix install.sh for systemd")
> It hasn't been an issue for me since that change.

I thought it was still the case but my current config does not install
files in /var/run anymore, so I missed that fix. Thanks for pointing
this out.

>
> For /lib a fixes is either:
> Fixes: e54a6cd6a1f3 ("systemd: Add hooks to stop/start xen-watchdog on
> suspend/resume")
>
> or
>
> Fixes: b34bde262c8c ("systemd: fall back to default system-sleep dir
> without systemd-devel")
>
> It might have only been the second one that defaulted to /lib causing
> the problem.  Though the issue is more general.
>
> I do think a fixes and backport are warranted.  With the commit message
> updated:

After discussing with Jan, I will send a v2 that uses the more standard
option -h instead of --keep-directory-symlink and updates the commit
message.

Regards,



--
Thierry Escande | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.