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