[elbe-devel] Grub Efi Build fails due to losetup

Torben Hohn torben.hohn at linutronix.de
Mon Aug 12 09:52:29 CEST 2019


On Mon, Aug 12, 2019 at 07:03:45AM +0000, Steih, Martin wrote:
> Hello,

Hello Mr. Steih,
> 
> We try to build an efi- image and took the example https://github.com/Linutronix/elbe/blob/master/examples/x86_64-pc-hdimg-grub-uefi-stretch.xml as a reference. Unfortunately our Configuration as well as the example itself are failing with:
> 
> losetup: /var/cache/elbe/c351f89f-d1d9-49cc-b6f0-54ca328fd453/sda.img: failed to set up loop device: Device or resource busy
> Command failed with errorcode 1
> Build failed
> 
> Has anyone any suggestions?

This might be due to an aborted build still occupying the loop device,
that is used to create sda.img. Have you tried to restart the initvm ?
This should fix that problem.

more information can be obtained, by logging into the initvm using 

"elbe initvm attach" ...

then "losetup -l" ... also look with "mount" whether the loopmounts
are mounted.

to remove them, first "umount" them and then losetup -d can be used.

The x86_64-pc-hdimg-grub-uefi-stretch.xml example is part of our test
suite, and i can say for sure, that it passed in elbe v10 released on
Friday.


if the problem persists please provide the logfile and the output of
"losetup -l" and "mount" after the broken run.

> 
> 
> i. A. Martin Steih
> Entwicklung
> ________________________________
> 
> Lachmann & Rink GmbH
> Hommeswiese 129
> 57258 Freudenberg
> 
> Telefon: +49 2734 2817 430
> Telefax: +49 2734 2817 20
> E-Mail: Martin.Steih at lachmann-rink.de<mailto:Martin.Steih at lachmann-rink.de>
> Internet: https://www.lachmann-rink.de
> 
> Geschäftsführer: Dipl.-Ing. Arjan Bijlard, Dipl.-Inf. Claudius Rink
> 
> Amtsgericht Siegen, HRB 2600

> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel


-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list