mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-11 11:21:11 +00:00
functions: provide nss_systemd-less nsswitch.conf in chroots.
(cherry picked from commit 4d4f113f42d6c3a58a484582af4d2c02f96a42bf)
This commit is contained in:
parent
2be2852ee0
commit
558bcbc47e
@ -113,6 +113,8 @@ setup_mountpoint() {
|
||||
mount -t tmpfs none "$mountpoint/var/cache/apt"
|
||||
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
|
||||
cp /etc/resolv.conf "$mountpoint/etc/resolv.conf"
|
||||
mv "$mountpoint/etc/nsswitch.conf" nsswitch.conf.tmp
|
||||
sed 's/systemd//g' nsswitch.conf.tmp > "$mountpoint/etc/nsswitch.conf"
|
||||
chroot "$mountpoint" apt-get update
|
||||
|
||||
}
|
||||
@ -130,6 +132,7 @@ teardown_mountpoint() {
|
||||
umount $submount
|
||||
done
|
||||
mv resolv.conf.tmp "$mountpoint/etc/resolv.conf"
|
||||
mv nsswitch.conf.tmp "$mountpoint/etc/nsswitch.conf"
|
||||
}
|
||||
|
||||
mount_partition() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user