Open cirrusUK opened 3 years ago
My guess is that Arch is reporting the system architecture in a way that debootstrap doesn't understand. What is your exact Raspberry Pi model? I'll try emulating it in QEMU.
Thanks for the prompt response, this is my olde pi model, i appreciate your help.
From the link
Model: Raspberry Pi Model B 512MB RAM Chip: Broadcom BCM2835 Processor: ARM1176JZF-S 700 MHz https://en.wikipedia.org/wiki/ARM11
Installing Arch on ARM QEMU is too time consuming, I'm not willing to go through with it. For reference, this seems to be the instructions: https://archlinuxarm.org/platforms/armv6/raspberry-pi
I believe in Debian-land this architecture is called armel
. So perhaps this issue can be worked around by passing the architecture to debootstrap explicitly via the --arch
parameter.
Can you try running this version of the script? This is just a testing branch. If it works, I will add a parameter to the script to override the architecture.
wget https://raw.githubusercontent.com/boronine/nspawn2go/wip-armel/nspawn2go.py
@cirrusUK ^
thanks bro, got few steps forward, only thing falling over now is E: cache directory should be specified with an absolute path
i will troubleshoot some more when i get back, gtg out an errand, thx again
Thanks for testing!
The error E: cache directory should be specified with an absolute path
is probably because your XDG_CACHE_HOME
is set to a non-absolute path. I removed this variable in the master version so you can try again.
I also added support for VMARCH
environment variable. You should be able to use the master version of the script like so:
wget https://raw.githubusercontent.com/boronine/nspawn2go/master/nspawn2go.py
sudo su
VMARCH=armel python3 nspawn2go.py
Here is the Output from the modified .py regards and again thx for taking the time.
Are you sure you ran the latest code and included the VMARCH=armel
environment variable? Based on your output it looks like either the script is not up-to-date or it's not picking up VMARCH
.
Could you try again? Note also that if you don't delete the old script before downloading the new one, wget will append a suffix to the new one.
sadly when i reach the install i get Unknown architecture: armv6h the pi runs archlinux-arm, i installed debootstrap-git from aur. any tips appreciated.
Unknown architecture: armv6h Something went wrong with the installation, run this to clean up your system: rm -rf /var/lib/machines/iandeb rm /etc/systemd/nspawn/iandeb.nspawn Traceback (most recent call last): File "/home/cirrus/build/nspawn2go.py", line 300, in
raise e
File "/home/cirrus/build/nspawn2go.py", line 214, in
subprocess.run(
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'debootstrap --variant minbase --include=dbus,systemd,sudo,tigervnc-standalone-server,dbus-x11,icewm,xterm --cache-dir /root/.cache/b9_provision_nspawn_deb stable iandeb http://deb.debian.org/debian/' returned non-zero exit status 1.