mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-02-16 15:03:35 +00:00
Merge remote-tracking branch 'mwhudson/fix-kylin' into ubuntu/master
* mwhudson/fix-kylin: isobuilder: pass ignore_dangling_symlinks=True when copying apt config
This commit is contained in:
commit
435c4e1895
@ -41,7 +41,7 @@ class AptStateManager:
|
||||
for path in "etc/apt", "var/lib/apt":
|
||||
tgt = self.apt_root.joinpath(path)
|
||||
tgt.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copytree(chroot.joinpath(path), tgt)
|
||||
shutil.copytree(chroot.joinpath(path), tgt, ignore_dangling_symlinks=True)
|
||||
self.apt_conf_path.write_text(f'Dir "{self.apt_root}/"; \n')
|
||||
with self.logger.logged("updating apt indices"):
|
||||
self.logger.run(["apt-get", "update"], env=self._apt_env())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user