summaryrefslogtreecommitdiff
path: root/pcr/debootstrap/debootstrap.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-10-09 18:13:17 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-10-09 18:13:17 -0200
commitf9b04e085d28f8f03ef1792f03ff4883aac9169d (patch)
tree8a20ffdf2d0589e7e047b6133e5030ff1ed085c1 /pcr/debootstrap/debootstrap.install
parent1b05dce5ba8a8a6b671e6fe89e3d6bfb39e720ee (diff)
debootstrap: adding new package to [pcr]
Diffstat (limited to 'pcr/debootstrap/debootstrap.install')
-rw-r--r--pcr/debootstrap/debootstrap.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcr/debootstrap/debootstrap.install b/pcr/debootstrap/debootstrap.install
new file mode 100644
index 000000000..ebd23e0dd
--- /dev/null
+++ b/pcr/debootstrap/debootstrap.install
@@ -0,0 +1,12 @@
+post_install() {
+ if [ "$(uname -m)" = "x86_64" ]; then
+ darch="amd64"
+ else
+ darch="i386"
+ fi
+ echo "$darch" > /usr/share/debootstrap/arch
+}
+
+pre_remove() {
+ rm -f /usr/share/debootstrap/arch
+}