Bug 31840 - linking libs for chroots fails for separate /var and /
Summary: linking libs for chroots fails for separate /var and /
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: chrooted (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-25 13:16 MSK by Ivan Zakharyaschev
Modified: 2017-10-28 03:36 MSK (History)
4 users (show)

See Also:


Attachments
/var/run/alteratord/alteratord.log (5.92 KB, text/plain)
2016-02-25 13:16 MSK, Ivan Zakharyaschev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2016-02-25 13:16:39 MSK
Created attachment 6505 [details]
/var/run/alteratord/alteratord.log

regular-xfce-20160223 x86_64: the installation doesn't complete if /var and / are on separate filesystems.

From /var/run/alteratord/alteratord.log :

...
cp: cannot create hard link '/mnt/destination/var/lib/openvpn/lib64/libnss_files.so.2' to '/mnt/destination/lib64/libnss_files-2.23.so': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/lib/openvpn/lib64/libnss_mdns4_minimal.so.2' to '/mnt/destination/lib64/libnss_mdns4_minimal.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/lib/openvpn/lib64/libnss_myhostname.so.2' to '/mnt/destination/lib64/libnss_myhostname.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/lib/openvpn/lib64/libnss_mymachines.so.2' to '/mnt/destination/lib64/libnss_mymachines.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/lib/openvpn/lib64/libresolv.so.2' to '/mnt/destination/lib64/libresolv-2.23.so': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/etc/host.conf' to '/mnt/destination/etc/host.conf': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/etc/hosts' to '/mnt/destination/etc/hosts': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/etc/resolv.conf' to '/mnt/destination/etc/resolv.conf': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/etc/services' to '/mnt/destination/etc/services': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnsl.so.1' to '/mnt/destination/lib64/libnsl-2.23.so': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnss_dns.so.2' to '/mnt/destination/lib64/libnss_dns-2.23.so': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnss_fallback.so.2' to '/mnt/destination/lib64/libnss_fallback.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnss_files.so.2' to '/mnt/destination/lib64/libnss_files-2.23.so': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnss_mdns4_minimal.so.2' to '/mnt/destination/lib64/libnss_mdns4_minimal.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnss_myhostname.so.2' to '/mnt/destination/lib64/libnss_myhostname.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libnss_mymachines.so.2' to '/mnt/destination/lib64/libnss_mymachines.so.2': Invalid cross-device link
cp: cannot create hard link '/mnt/destination/var/resolv/lib64/libresolv.so.2' to '/mnt/destination/lib64/libresolv-2.23.so': Invalid cross-device link
message:stage postinstall
Comment 1 Ivan Zakharyaschev 2016-02-25 15:01:15 MSK
I'm not sure the messages in  /var/run/alteratord/alteratord.log have something to do with the installation. Do they?

Perhaps the problem was a different one.

It didn't proceed after the "installation" stage (I expected the user creation stages, bootloader installation, etc.)
Comment 2 Michael Shigorin 2016-02-25 17:48:27 MSK
Это ведь не chrooted, а что-то ещё?  Можешь попробовать выяснить, что именно?
Comment 3 Ivan Zakharyaschev 2016-02-25 17:52:26 MSK
(In reply to comment #2)
> Это ведь не chrooted, а что-то ещё?  Можешь попробовать выяснить, что именно?

Я бы мог посмотреть какие-то ещё логи. Но куда смотреть?
Comment 4 Ivan Zakharyaschev 2016-02-25 17:55:05 MSK
(In reply to comment #2)
> Это ведь не chrooted, а что-то ещё?  Можешь попробовать выяснить, что именно?

Мне кажется chrooted.

/etc/chroot.d/openvpn.* ?
Comment 5 Michael Shigorin 2016-12-05 15:52:39 MSK
Тогда на него и.
Comment 6 Dmitry V. Levin 2017-10-28 03:36:16 MSK
Пакет chrooted так не делает.