fai-project.org repository not armhf enabled

Martin Krämer mk.maddin at gmail.com
Fri Apr 27 15:16:57 CEST 2018


Hi Thomas,

sorry to bother you again.
First of all - this request is very low priority - so take your time :)

During my ongoing work with armhf devices and fai I found that installing
on micro-sd card is unfortunately not possible.
Reason behind this is that official debian stretch only contains
fai-setup-storage 5.3.6.
In fai 5.6 the fai-disk-info script contains regex to match "mmcblk" device
while 5.3.6 does not.

Unfortunately http://fai-project.org/download is not armhf enabled - due to
this,
the packages fai packages cannot be updated from this repository.

My current workaround is to download .deb package on my amd64 machine and
manually execute it on armhf device:
cd /tmp && apt-get download fai-setup-storage && cp /tmp/fai-setup-storage*
/srv/fai/nfsroot-armhf/tmp/ && chroot /srv/fai/nfsroot-armhf dpkg -i
/tmp/fai-setup-storage*

Do you think it is possible to enable the fai-project repository for armhf
devices?
Should I create a Debian bug report/feature request about it instead of
writing to this mailing list? (I am absolutely not sure which kind of
communication medium suits you more)

Below is some more detailed output which shows the problem:

root at faiserver:~# ls -la /srv/fai/nfsroot/usr/lib/fai/fai-disk-info
-rwxr-xr-x 1 root root 1324 Feb 28 12:34
/srv/fai/nfsroot/usr/lib/fai/fai-disk-info
root at faiserver:~# ls -la /srv/fai/nfsroot-armhf/usr/lib/fai/fai-disk-info
-rwxr-xr-x 1 root root 1051 Apr 20  2017
/srv/fai/nfsroot-armhf/usr/lib/fai/fai-disk-info
root at faiserver:~# chroot /srv/fai/nfsroot apt list -a fai-setup-storage
Listing... Done
fai-setup-storage/stretch,now 5.6 all [installed,automatic]
fai-setup-storage/stable 5.3.6 all

root at faiserver:~# chroot /srv/fai/nfsroot-armhf apt list -a
fai-setup-storage
Listing... Done
fai-setup-storage/stable,now 5.3.6 all [installed,automatic]

root at faiserver:~# diff /srv/fai/nfsroot/usr/lib/fai/fai-disk-info
/srv/fai/nfsroot-armhf/usr/lib/fai/fai-disk-info
17,19d16
<         if [ -n "$stick" ]; then
<             [ $device = $stick ] && isdisk=0
<         fi
24,31d20
<
<
< # determine the device of the USB stick we boot from
< stick=$(mount | awk '/run\/initramfs\/live/ {print $1}')
< stick=${stick#/dev/}
< stick=${stick%%[[:digit:]]*}
<
<
33c22
< ( egrep 'md[0-9]{3,}$' /proc/partitions; egrep '
etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b|
cciss/c[[:digit:]]+d[[:digit:]]+\b| ida/c[[:digit:]]+d[[:digit:]]+\b|
rd/c[[:digit:]]+d[[:digit:]]+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b|
vd.\b| xvd.\b| nvme[[:digit:]]n1$| mmcblk[[:digit:]]$' /proc/partitions ) |
checkdisk
---
> ( egrep 'md[0-9]{3,}$' /proc/partitions; egrep '
etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.+\b|
cciss/c[[:digit:]]+d[[:digit:]]+\b| ida/c[[:digit:]]+d[[:digit:]]+\b|
rd/c[[:digit:]]+d[[:digit:]]+\b| fio.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b|
vd.\b| xvd.\b| nvme[[:digit:]]n1$' /proc/partitions ) | checkdisk

root at faiserver:~# chroot /srv/fai/nfsroot-armhf apt-get update
Ign:1 http://fai-project.org/download stretch InRelease
Hit:2 http://fai-project.org/download stretch Release

Ign:3 http://deb.debian.org/debian stretch InRelease

Get:4 http://security.debian.org/debian-security stretch/updates InRelease
[94.3 kB]
Get:5 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]

Get:6 http://deb.debian.org/debian stretch-proposed-updates InRelease [96.3
kB]
Hit:7 http://deb.debian.org/debian stretch Release
Get:9 http://security.debian.org/debian-security stretch/updates/main armhf
Packages [357 kB]
Fetched 639 kB in 8s (75.2 kB/s)

Reading package lists... Done
N: Skipping acquire of configured file 'koeln/binary-armhf/Packages' as
repository 'http://fai-project.org/download stretch InRelease' doesn't
support architecture 'armhf'

Thank you for your effort
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20180427/4e166609/attachment.html>


More information about the linux-fai mailing list