summaryrefslogtreecommitdiff
path: root/examples/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:48:46 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:48:46 +0200
commitd1047e809a90daa0e88329efc0db21931be0b919 (patch)
tree5dc92aaaeb4d15dcad4796935b90a9675be93ad5 /examples/hooks
parent160d6bade79bf58a1c0d1842dc9b55ec178ec303 (diff)
downloadvyos-live-build-d1047e809a90daa0e88329efc0db21931be0b919.tar.gz
vyos-live-build-d1047e809a90daa0e88329efc0db21931be0b919.zip
Adding debian version 4.0~a1-1.debian/4.0_a1-1
Diffstat (limited to 'examples/hooks')
-rwxr-xr-xexamples/hooks/minimal.chroot2
-rwxr-xr-xexamples/hooks/stripped.chroot4
-rwxr-xr-xexamples/hooks/symlinks.chroot22
3 files changed, 25 insertions, 3 deletions
diff --git a/examples/hooks/minimal.chroot b/examples/hooks/minimal.chroot
index 5a9a8d648..70af0dd40 100755
--- a/examples/hooks/minimal.chroot
+++ b/examples/hooks/minimal.chroot
@@ -1,7 +1,7 @@
#!/bin/sh
## live-build(7) - System Build Scripts
-## Copyright (C) 2006-2013 Daniel Baumann <daniel@debian.org>
+## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
diff --git a/examples/hooks/stripped.chroot b/examples/hooks/stripped.chroot
index 9ebe5bc12..fe3f6cacb 100755
--- a/examples/hooks/stripped.chroot
+++ b/examples/hooks/stripped.chroot
@@ -1,7 +1,7 @@
#!/bin/sh
## live-build(7) - System Build Scripts
-## Copyright (C) 2006-2013 Daniel Baumann <daniel@debian.org>
+## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
@@ -31,7 +31,7 @@ done
apt-get autoremove --yes || true
# Removing unused files
-find . -name *~ -print0 | xargs -0 rm -f
+find . -name *~ | xargs rm -f
rm -rf /usr/include/*
#rm -rf /usr/share/groff/*
diff --git a/examples/hooks/symlinks.chroot b/examples/hooks/symlinks.chroot
new file mode 100755
index 000000000..b0f2eea47
--- /dev/null
+++ b/examples/hooks/symlinks.chroot
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# This is a hook for live-build(7) to install localepurge.
+# To enable it, copy or symlink this hook into your config/chroot_local-hooks
+# directory.
+#
+
+_PURGE=""
+
+if [ ! -x "$(which symlinks 2>/dev/null)" ]
+then
+ _PURGE="true"
+
+ apt-get install symlinks
+fi
+
+symlinks -c -r -s /
+
+if [ "${_PURGE}" = "true" ]
+then
+ apt-get remove --purge symlinks
+fi