summaryrefslogtreecommitdiff
path: root/pcr/debootstrap/debootstrap.install
blob: 85a99f1602caa8606c9c818361bd759360f03134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}