aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-11-07 22:35:43 +0100
committerVG <vg@devys.org>2016-11-07 22:35:43 +0100
commit668660a31b6bbe5b1593e1d4c409d0ecc577db85 (patch)
tree4c111250545784a361ab245e50228e8206fbdb20
parentf9d9418596612bbb2ea2b406d75a075815251e52 (diff)
downloaddebootstrap-scripts-668660a31b6bbe5b1593e1d4c409d0ecc577db85.tar.gz
debootstrap-scripts-668660a31b6bbe5b1593e1d4c409d0ecc577db85.tar.bz2
debootstrap-scripts-668660a31b6bbe5b1593e1d4c409d0ecc577db85.zip
makedir before creating a symlink in etc/kernel/postrm.d
-rwxr-xr-xrpi2-debian-stdkernel/make-rpi-debootstrap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpi2-debian-stdkernel/make-rpi-debootstrap.py b/rpi2-debian-stdkernel/make-rpi-debootstrap.py
index e129027..ca0e65e 100755
--- a/rpi2-debian-stdkernel/make-rpi-debootstrap.py
+++ b/rpi2-debian-stdkernel/make-rpi-debootstrap.py
@@ -114,6 +114,7 @@ def system_customization(rootdir):
shutil.copy('files/main.sources', join(rootdir, 'etc/apt/sources.list.d'))
os.unlink(join(rootdir, 'etc/apt/sources.list'))
shutil.copy('files/vg-copy-rpi', join(rootdir, 'etc/kernel/postinst.d'))
+ os.makedirs(join(rootdir, 'etc/kernel/postrm.d'), mode=0o755)
os.symlink('../postinst.d/vg-copy-rpi',
join(rootdir, 'etc/kernel/postrm.d/vg-copy-rpi'))