Re: Using disk images from cloud.debian.org

2019-11-18 Thread Vincent Bernat
 ❦ 18 novembre 2019 15:46 +01, Johannes Schauer :

> Unfortunately, it doesn't help in my situation because my original problem is
> that due to missing functionality (like losetup, mount or kpartx) in the
> autopkgtest runners I cannot create disk images so I cannot create a disk 
> image
> of that "config drive" usb stick either. :(

Without being root, you can create FAT filesystems using raw images with
mtools. For example :

truncate -s 10M metadata-$name.img
mkfs.vfat metadata-$name.img
mcopy -i metadata-$name.img id_rsa.pub ::/.

-- 
April 1

This is the day upon which we are reminded of what we are on the other three
hundred and sixty-four.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"


signature.asc
Description: PGP signature


Re: Using disk images from cloud.debian.org

2019-11-18 Thread Johannes Schauer
Hi,

Quoting Vincent Bernat (2019-11-18 06:25:02)
> > As I explained in the first paragraph of my initial email, I'm trying to
> > find an alternative to creating a bootable disk image myself that I can
> > then use on salsa CI runners (for example inside autopkgtests). So there is
> > no metadata server.
> You can provide the metadata as an USB disk. It's called "config drive".
> See: 
> 

that is very cool, thank you!

Unfortunately, it doesn't help in my situation because my original problem is
that due to missing functionality (like losetup, mount or kpartx) in the
autopkgtest runners I cannot create disk images so I cannot create a disk image
of that "config drive" usb stick either. :(

It's okay if the images provided by cloud.d.o don't help in this particular
situation inside autopkgtest on salsa ci but I didn't want to pass on an easy
solution.  If anybody can think of another option I would be all ears. :)

Thanks!

cheers, josch


signature.asc
Description: signature