User Tools

Site Tools


en:bpi-r2:debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:bpi-r2:debian [2019/01/19 17:12]
frank
en:bpi-r2:debian [2019/08/09 20:02] (current)
frank [debootstrap]
Line 11: Line 11:
 <code bash> <code bash>
 sudo apt-get install qemu-user-static debootstrap binfmt-support sudo apt-get install qemu-user-static debootstrap binfmt-support
-targetdir=$(pwd)/​debian_stretch +distro=buster 
-distro=stretch+arch=armhf 
 +#for bpi-r64 use arch=arm64 
 +targetdir=$(pwd)/​debian_${distro}_${arch}
 mkdir $targetdir mkdir $targetdir
-sudo debootstrap --arch=armhf --foreign $distro $targetdir +sudo debootstrap --arch=$arch --foreign $distro $targetdir
-#for bpi-r64 use --arch=arm64+
 sudo cp /​usr/​bin/​qemu-arm-static $targetdir/​usr/​bin/​ sudo cp /​usr/​bin/​qemu-arm-static $targetdir/​usr/​bin/​
 #for r64 use #for r64 use
 # sudo cp /​usr/​bin/​qemu-aarch64-static $targetdir/​usr/​bin/​ # sudo cp /​usr/​bin/​qemu-aarch64-static $targetdir/​usr/​bin/​
 sudo cp /​etc/​resolv.conf $targetdir/​etc sudo cp /​etc/​resolv.conf $targetdir/​etc
-sudo chroot $targetdir +sudo distro=$distro ​chroot $targetdir
-distro=stretch+
 export LANG=C export LANG=C
 /​debootstrap/​debootstrap --second-stage /​debootstrap/​debootstrap --second-stage
Line 34: Line 34:
   * /​etc/​apt/​sources.list   * /​etc/​apt/​sources.list
 <​code>​ <​code>​
-deb http://​ftp.us.debian.org/​debian ​stretch ​main contrib non-free +deb http://​ftp.us.debian.org/​debian ​buster ​main contrib non-free 
-deb-src http://​ftp.us.debian.org/​debian ​stretch ​main contrib non-free +deb-src http://​ftp.us.debian.org/​debian ​buster ​main contrib non-free 
-deb http://​ftp.us.debian.org/​debian ​stretch-updates main contrib non-free +deb http://​ftp.us.debian.org/​debian ​buster-updates main contrib non-free 
-deb-src http://​ftp.us.debian.org/​debian ​stretch-updates main contrib non-free +deb-src http://​ftp.us.debian.org/​debian ​buster-updates main contrib non-free 
-deb http://​security.debian.org/​debian-security ​stretch/updates main contrib non-free +deb http://​security.debian.org/​debian-security ​buster/updates main contrib non-free 
-deb-src http://​security.debian.org/​debian-security ​stretch/updates main contrib non-free+deb-src http://​security.debian.org/​debian-security ​buster/updates main contrib non-free
 </​code>​ </​code>​
   * fstab (boot,root)   * fstab (boot,root)
en/bpi-r2/debian.1547914341.txt.gz · Last modified: 2019/01/19 17:12 by frank