projects
/
lxc-debian-unprivileged.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only remove devices.tar.gz if it exists
[lxc-debian-unprivileged.git]
/
templates
/
lxc-debian-unprivileged
diff --git
a/templates/lxc-debian-unprivileged
b/templates/lxc-debian-unprivileged
index abb925f75ee8040d2dba7b16be0b180e89cfc8a2..dd7bdafc11e5e862f594dc8378e7697a24836a29 100755
(executable)
--- a/
templates/lxc-debian-unprivileged
+++ b/
templates/lxc-debian-unprivileged
@@
-315,7
+315,9
@@
keyring_dpkg=$(sed -ne "/^debian-archive-keyring/ { s#.* ##; p; }" "${LXC_ROOTFS
(cd "${LXC_ROOTFS}" && dpkg-deb -x ".$keyring_dpkg" .)
# replace the tar containing devices with something that doesn't contain any
(cd "${LXC_ROOTFS}" && dpkg-deb -x ".$keyring_dpkg" .)
# replace the tar containing devices with something that doesn't contain any
-(cd "$LXC_ROOTFS/debootstrap" && rm devices.tar.gz && tar czvf devices.tar.gz --files-from=/dev/null)
+if [ -e "$LXC_ROOTFS/debootstrap/devices.tar.gz" ]; then
+ (cd "$LXC_ROOTFS/debootstrap" && rm devices.tar.gz && tar czvf devices.tar.gz --files-from=/dev/null)
+fi
# and mount a shitload of things for fun and profit...
for file in /var/lib/lxcfs/proc/*; do
# and mount a shitload of things for fun and profit...
for file in /var/lib/lxcfs/proc/*; do