summaryrefslogtreecommitdiff
path: root/pcr/debootstrap/debootstrap.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/debootstrap/debootstrap.install')
-rw-r--r--pcr/debootstrap/debootstrap.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcr/debootstrap/debootstrap.install b/pcr/debootstrap/debootstrap.install
new file mode 100644
index 000000000..85a99f160
--- /dev/null
+++ b/pcr/debootstrap/debootstrap.install
@@ -0,0 +1,14 @@
+post_install() {
+ if [ "$(uname -m)" = "x86_64" ]; then
+ darch="amd64"
+ elif [ "$(uname -m)" = "i386" ]; then
+ darch="i386"
+ else
+ darch="mips64el"
+ fi
+ echo "$darch" > /usr/share/debootstrap/arch
+}
+
+pre_remove() {
+ rm -f /usr/share/debootstrap/arch
+}