<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3662&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / AWS EC2 AMI by FAI: grub-probe: error: failed to get canonical path]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3662</link>
		<description><![CDATA[The most recent posts in AWS EC2 AMI by FAI: grub-probe: error: failed to get canonical path.]]></description>
		<lastBuildDate>Sun, 08 Nov 2020 00:09:55 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: AWS EC2 AMI by FAI: grub-probe: error: failed to get canonical path]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=25727#p25727</link>
			<description><![CDATA[<p>Checked the same steps with Devuan 4 Chimaera and fresh content of &quot;debian-cloud-images&quot; repository — image created successfully:</p><div class="codebox"><pre><code> % ls -l /tmp/image*                 
-rw-r--r-- 1 root  root       37004 Nov  8 03:01 /tmp/image_buster_ec2_amd64.build-fai.json
-rw-r--r-- 1 lenin lenin      37806 Nov  8 03:02 /tmp/image_buster_ec2_amd64.build.json
-rw-r--r-- 1 root  root       15460 Nov  8 03:01 /tmp/image_buster_ec2_amd64.build.junit.xml
-rw-r--r-- 1 root  root       42430 Nov  8 03:01 /tmp/image_buster_ec2_amd64.info
-rw-r--r-- 1 root  root  8589934592 Nov  8 03:01 /tmp/image_buster_ec2_amd64.raw
-rw-r--r-- 1 lenin lenin  775700480 Nov  8 03:01 /tmp/image_buster_ec2_amd64.tar
 % file /tmp/image_buster_ec2_amd64.raw
/tmp/image_buster_ec2_amd64.raw: DOS/MBR boot sector, extended partition table (last)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (vazhnov)]]></author>
			<pubDate>Sun, 08 Nov 2020 00:09:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=25727#p25727</guid>
		</item>
		<item>
			<title><![CDATA[Re: AWS EC2 AMI by FAI: grub-probe: error: failed to get canonical path]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=23270#p23270</link>
			<description><![CDATA[<p>Devuan 3:</p><div class="codebox"><pre><code>root@devuan3-01:~# for i in proc sys dev;do findmnt /$i;done
TARGET SOURCE FSTYPE OPTIONS
/proc  proc   proc   rw,nosuid,nodev,noexec,relatime
TARGET SOURCE FSTYPE OPTIONS
/sys   sysfs  sysfs  rw,nosuid,nodev,noexec,relatime
TARGET SOURCE FSTYPE   OPTIONS
/dev   udev   devtmpfs rw,nosuid,relatime,size=1005164k,nr_inodes=251291,mode=755</code></pre></div><p>Debian 10:</p><div class="codebox"><pre><code>root@debian10-01:~# for i in proc sys dev;do findmnt /$i;done
TARGET SOURCE FSTYPE OPTIONS
/proc  proc   proc   rw,nosuid,nodev,noexec,relatime
TARGET SOURCE FSTYPE OPTIONS
/sys   sysfs  sysfs  rw,nosuid,nodev,noexec,relatime
TARGET SOURCE FSTYPE   OPTIONS
/dev   udev   devtmpfs rw,nosuid,relatime,size=1006728k,nr_inodes=251682,mode=755</code></pre></div><p>No difference except <span class="bbc">size</span> and <span class="bbc">nr_inodes</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (vazhnov)]]></author>
			<pubDate>Sun, 05 Jul 2020 18:23:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=23270#p23270</guid>
		</item>
		<item>
			<title><![CDATA[Re: AWS EC2 AMI by FAI: grub-probe: error: failed to get canonical path]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=23269#p23269</link>
			<description><![CDATA[<p>Are /proc, /dev &amp; /sys mounted in the Devuan VM?</p><div class="codebox"><pre><code>for i in proc sys dev;do findmnt /$i;done</code></pre></div><p>Compare the output with the Debian VM.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 05 Jul 2020 18:15:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=23269#p23269</guid>
		</item>
		<item>
			<title><![CDATA[AWS EC2 AMI by FAI: grub-probe: error: failed to get canonical path]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=23266#p23266</link>
			<description><![CDATA[<p>I&#039;m trying to create clean minimal Devuan image for AWS.</p><p>As I know, Debian uses <a href="https://fai-project.org/" rel="nofollow">Fully automatic installation</a> (FAI) to create AWS AMIs: <a href="https://wiki.debian.org/Cloud/SystemsComparison" rel="nofollow">https://wiki.debian.org/Cloud/SystemsComparison</a>, <a href="https://wiki.debian.org/Cloud/AmazonEC2Image" rel="nofollow">https://wiki.debian.org/Cloud/AmazonEC2Image</a>.</p><p>So first I tried to repeat process of Debian image creation by FAI. Next step will be: change FAI configuration to build Devuan image.</p><p>System: I use KVM virtual machine (Proxmox 6/Debian 10 buster) with Devuan guest:</p><div class="codebox"><pre><code>lenin@devuan3-01 ~ % cat /etc/os-release
PRETTY_NAME=&quot;Devuan GNU/Linux 3 (beowulf)&quot;
NAME=&quot;Devuan GNU/Linux&quot;
VERSION_ID=&quot;3&quot;
VERSION=&quot;3 (beowulf)&quot;
VERSION_CODENAME=beowulf
ID=debian
ID_LIKE=debian
HOME_URL=&quot;https://www.devuan.org/&quot;
SUPPORT_URL=&quot;https://devuan.org/os/community&quot;
BUG_REPORT_URL=&quot;https://bugs.devuan.org/&quot;</code></pre></div><p>Commands I used:</p><div class="codebox"><pre><code>sudo apt-get -V install fai-server fai-setup-storage qemu-utils
sudo apt-get -V --no-install-recommends install ca-certificates debsums dosfstools fai-server fai-setup-storage make python3 python3-libcloud python3-marshmallow python3-pytest python3-yaml qemu-utils udev
git clone &quot;git@salsa.debian.org:cloud-team/debian-cloud-images.git&quot;
cd debian-cloud-images
make DESTDIR=/tmp/ image_buster_ec2_amd64</code></pre></div><p>(also I changed <span class="bbc">apt_cdn=http://192.168.1.1:3142/deb.debian.org</span> and <span class="bbc">security_cdn=http://192.168.1.1:3142/security.debian.org</span> URLs to use apt-cacher-ng).</p><p>Result:</p><div class="codebox"><pre class="vscroll"><code>…
Setting up grub-cloud-amd64 (0.0.4) ...
grub-probe: error: failed to get canonical path of `/dev/loop0p1&#039;.
Installing for i386-pc platform.
grub-install: error: failed to get canonical path of `/dev/loop0p1&#039;.
dpkg: error processing package grub-cloud-amd64 (--configure):
 installed grub-cloud-amd64 package post-installation script subprocess returned error exit status 1
…

Errors were encountered while processing:
 grub-cloud-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: 25600 25600
ERROR: chroot /tmp/fai-diskimage.M61Y2t apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew --fix-missing install --no-install-recommends openssh-server cloud-initramfs-growroot sudo libpam-systemd unattended-upgrades chrony apt-utils ifupdown init iptables iputils-ping isc-dhcp-client less logrotate nano netbase rsyslog vim-tiny whiptail python-boto bsdmainutils awscli python3-boto cloud-init cloud-guest-utils linux-image-cloud-amd64 apparmor grub-cloud-amd64 return code 100
install_packages: executing chroot /tmp/fai-diskimage.M61Y2t apt-get clean
install_packages: executing chroot /tmp/fai-diskimage.M61Y2t dpkg --configure --pending
Setting up grub-cloud-amd64 (0.0.4) ...
grub-probe: error: failed to get canonical path of `/dev/loop0p1&#039;.
Installing for i386-pc platform.
grub-install: error: failed to get canonical path of `/dev/loop0p1&#039;.
dpkg: error processing package grub-cloud-amd64 (--configure):
 installed grub-cloud-amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 grub-cloud-amd64
ERROR: 256 256
ERROR: chroot /tmp/fai-diskimage.M61Y2t dpkg --configure --pending return code 1
install_packages: executing chroot /tmp/fai-diskimage.M61Y2t dpkg -C
The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure &lt;package&gt; or the configure menu option in dselect:
 grub-cloud-amd64     GRand Unified Bootloader (cloud setup)

install_packages: executing chroot /tmp/fai-diskimage.M61Y2t apt-get clean
2 errors during executing of install_packages
Error in task instsoft. Code: 471
Traceback: task_error task_instsoft task task_install task task_action task main
FATAL ERROR. Installation stopped.
Size of disk image and filename: 800M	/tmp/image_buster_ec2_amd64.raw
Image created by: /usr/sbin/fai-diskimage --verbose --hostname debian --class DEBIAN,CLOUD,TYPE_DEV,BUSTER,EXTRAS,EC2,IPV6_DHCP,AMD64,GRUB_CLOUD_AMD64,LOCALDEBS,LINUX_IMAGE_CLOUD,LAST --size 8G --cspace /home/lenin/debian-cloud-images/src/debian_cloud_images/build/fai_config /tmp/image_buster_ec2_amd64.raw
Traceback (most recent call last):
  File &quot;/usr/lib/python3.7/runpy.py&quot;, line 193, in _run_module_as_main
    &quot;__main__&quot;, mod_spec)
  File &quot;/usr/lib/python3.7/runpy.py&quot;, line 85, in _run_code
    exec(code, run_globals)
  File &quot;/home/lenin/debian-cloud-images/src/debian_cloud_images/cli/__main__.py&quot;, line 38, in &lt;module&gt;
    main()
  File &quot;/home/lenin/debian-cloud-images/src/debian_cloud_images/cli/__main__.py&quot;, line 34, in main
    args.cls(argparser=parser, **vars(args))()
  File &quot;/home/lenin/debian-cloud-images/src/debian_cloud_images/cli/build.py&quot;, line 417, in __call__
    self.fai(not self.noop)
  File &quot;/home/lenin/debian-cloud-images/src/debian_cloud_images/build/fai.py&quot;, line 47, in __call__
    raise subprocess.CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command &#039;(&#039;sudo&#039;, &#039;env&#039;, &#039;PYTHONPATH=/home/lenin/debian-cloud-images/src/debian_cloud_images/build/../..&#039;, &#039;CLOUD_BUILD_DATA=/home/lenin/debian-cloud-images/src/debian_cloud_images/data&#039;, &#039;CLOUD_BUILD_INFO={&quot;type&quot;: &quot;dev&quot;, &quot;release&quot;: &quot;buster&quot;, &quot;release_id&quot;: &quot;10&quot;, &quot;release_baseid&quot;: &quot;10&quot;, &quot;vendor&quot;: &quot;ec2&quot;, &quot;arch&quot;: &quot;amd64&quot;, &quot;build_id&quot;: &quot;manual&quot;, &quot;version&quot;: &quot;202007051951&quot;}&#039;, &#039;CLOUD_BUILD_NAME=image_buster_ec2_amd64&#039;, &#039;CLOUD_BUILD_OUTPUT_DIR=/tmp&#039;, &#039;CLOUD_RELEASE_ID=ec2&#039;, &#039;CLOUD_RELEASE_VERSION=202007051951&#039;, &#039;fai-diskimage&#039;, &#039;--verbose&#039;, &#039;--hostname&#039;, &#039;debian&#039;, &#039;--class&#039;, &#039;DEBIAN,CLOUD,TYPE_DEV,BUSTER,EXTRAS,EC2,IPV6_DHCP,AMD64,GRUB_CLOUD_AMD64,LOCALDEBS,LINUX_IMAGE_CLOUD,LAST&#039;, &#039;--size&#039;, &#039;8G&#039;, &#039;--cspace&#039;, &#039;/home/lenin/debian-cloud-images/src/debian_cloud_images/build/fai_config&#039;, &#039;/tmp/image_buster_ec2_amd64.raw&#039;)&#039; returned non-zero exit status 1.
make: *** [Makefile:14: image_buster_ec2_amd64] Error 1</code></pre></div><p>Before the error, disks are:</p><div class="codebox"><pre><code>lenin@devuan3-01 ~ % sudo lsblk
NAME       MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0        7:0    0    8G  0 loop 
├─loop0p1  259:0    0  7.9G  0 part /tmp/fai-diskimage.M61Y2t
├─loop0p14 259:1    0    3M  0 part 
└─loop0p15 259:2    0  124M  0 part /tmp/fai-diskimage.M61Y2t/boot/efi
sr0         11:0    1  620M  0 rom  
vda        254:0    0   32G  0 disk 
├─vda1     254:1    0   30G  0 part /
├─vda2     254:2    0    1K  0 part 
└─vda5     254:5    0    2G  0 part [SWAP]
lenin@devuan3-01 ~ % sudo blkid|grep loop| sort
/dev/loop0p14: PARTUUID=&quot;f298765a-20f9-2543-8fe7-2749d86cdd61&quot;
/dev/loop0p15: SEC_TYPE=&quot;msdos&quot; UUID=&quot;4FCA-6200&quot; TYPE=&quot;vfat&quot; PARTUUID=&quot;5afa65b1-da1b-3648-b04c-c16bc2da197e&quot;
/dev/loop0p1: UUID=&quot;f69236e0-7497-40a3-9e78-79d095a33e20&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;87e7358e-67ec-ba46-8dc5-91ecdd661c0e&quot;
/dev/loop0: PTUUID=&quot;7553b010-f107-3449-9c99-5db320211b37&quot; PTTYPE=&quot;gpt&quot;</code></pre></div><div class="codebox"><pre><code>lenin@devuan3-01 ~ % ls -lAF /tmp/fai-diskimage.M61Y2t
total 88
drwxr-xr-x   2 root  root   4096 Jul  5 19:54 bin/
drwxr-xr-x   3 root  root   4096 Jul  5 19:54 boot/
drwxr-xr-x   4 root  root   4096 Jul  5 19:52 dev/
drwxr-xr-x  71 root  root   4096 Jul  5 19:55 etc/
drwxr-xr-x   2 root  root   4096 May  2 19:39 home/
drwxr-xr-x  12 root  root   4096 Jul  5 19:54 lib/
drwxr-xr-x   2 root  root   4096 Jul  5 19:52 lib64/
drwxr-xr-x   2 lenin lenin  4096 Jun 20 15:40 localdebs/
drwx------   2 root  root  16384 Jul  5 19:51 lost+found/
drwxr-xr-x   2 root  root   4096 Jul  5 19:52 media/
drwxr-xr-x   2 root  root   4096 Jul  5 19:52 mnt/
drwxr-xr-x   2 root  root   4096 Jul  5 19:52 opt/
dr-xr-xr-x 106 root  root      0 Jul  1 00:29 proc/
drwx------   2 root  root   4096 Jul  5 19:52 root/
drwxr-xr-x   5 root  root   4096 Jul  5 19:53 run/
drwxr-xr-x   2 root  root   4096 Jul  5 19:54 sbin/
drwxr-xr-x   2 root  root   4096 Jul  5 19:52 srv/
dr-xr-xr-x  13 root  root      0 Jul  1 00:29 sys/
drwxrwxrwt   2 root  root   4096 Jul  5 19:54 tmp/
drwxr-xr-x  10 root  root   4096 Jul  5 19:52 usr/
drwxr-xr-x  11 root  root   4096 Jul  5 19:52 var/</code></pre></div><p>I tried to repeat the same steps on the same Debian KVM virtual machine, it finished without error.</p><p>Any idea how to prevent this error, &quot;grub-probe: error: failed to get canonical path of `/dev/loop0p1&#039;&quot;?</p>]]></description>
			<author><![CDATA[dummy@example.com (vazhnov)]]></author>
			<pubDate>Sun, 05 Jul 2020 17:21:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=23266#p23266</guid>
		</item>
	</channel>
</rss>
