Debian Bug report logs - #693774
ITP: grub-loopback-iso -- Boot a compatible loopback

Package: wnpp; Maintainer for wnpp is wnpp@debian.org;

Reported by: Ryan Finnie <ryan@finnie.org>

Date: Tue, 20 Nov 2012 08:06:01 UTC

Owned by: Ryan Finnie <ryan@finnie.org>

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-devel@lists.debian.org, wnpp@debian.org:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 08:06:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Finnie <ryan@finnie.org>:
New Bug report received and forwarded. Copy sent to debian-devel@lists.debian.org, wnpp@debian.org. (Tue, 20 Nov 2012 08:06:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Ryan Finnie <ryan@finnie.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Mon, 19 Nov 2012 23:55:23 -0800
Package: wnpp
Severity: wishlist
Owner: Ryan Finnie <ryan@finnie.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

* Package name    : grub-finnix
  Version         : 107
  Upstream Author : N/A, native package
* URL             : N/A, native package
* License         : GPL
  Programming Lang: Shell (dash-compatible /etc/grub.d hook)
  Description     : Build a Finnix bootloader stanza on GRUB 2 systems

Extended description:
 grub-finnix is a GRUB2 configuration hook to boot Finnix, given a 
 compatible ISO.  The stanzas built utilize GRUB 2's loopback mount 
 support to boot a Finnix kernel and initrd, and passes the location of 
 the ISO to Finnix.  Finnix's first-stage initrd then searches for the 
 partition containing the specified ISO.
 .
 Note that there are certain restrictions regarding where the ISO may be 
 placed.  Please see README.Debian for installation instructions and 
 restrictions.

I talked about this briefly with Paul Wise, and while there are several 
existing packages which do similar GRUB loaders for other projects 
(grub-rescue-pc, grml-rescueboot), they are incredibly specialized to 
the target project.  It may be possible to abstract this sort of 
function into a shared package, but IMHO the shared code between them 
would be very small, and discrete packages for each targeted project 
would be better for maintenance.

The code is currently being developed at:
https://code.launchpad.net/~finnix/finnix/grub-finnix-pkg-debian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQqzdpAAoJEH5go6aGro2YV6cQAJOZaaPGxhjVOnNBRoHnm0IF
xJK6Y/HNEaa8rTaDYhlNHm7HRf0gXq6tjS0wvQ8GM2ZjRzScWSqm6j0RbIElEw8J
tBSVBsigkOWva8C+QY3zYIjAQo47vEe/pak0wVab7iO1nY0VB/BehqhWDoDM9Fvt
hy1oi1lVaRTbFEYZFfFvoyFCA610xPkdR4SFepOc3qXYuZPWK/cV24XxQ4c38sNy
LyAU2ykdutQL9IlJgikrI9ctN3ql1OrDn7xRr5c/Ps7E1c4NmmdwWaRJOnCe7o8e
d1DjA9L/LkkkEp/mdMFaFrfk0G30tEA2IFyoYTc5H8eGLRjWWCatT2Q8i60jB3G3
mRLV+BN4yZN8JQUesq9QI1/Lnreil6gYg6SR/E73dEF/MHKvTtwRscCfKgzIXYO7
U0BTtucsaUA1Nd/MPa4BUhhNLMC9mPx8PeCU2z2laY2rf1wkMQCvVMQAnIYOpxfp
SGFFthhMc75JiSgiCsp0NWkI2qa6ZX2x9/gLGFOPsNjMQQKpJhzrxt4HwTXgtb1m
jKcOJyNcgV2sUwMvK5Oy8QCnMM5LVgkvLNFvEfCPclToNRiKFd2Yv4qKyQPesO4B
igjTXpgucdhqMd5kqwhqqJPQ7YFOaitf8EdztuepK00pp2v3JZ/QWbLoyxYYX9Ra
7OHzoWXXtquwTGm8ZOLH
=0FAP
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Ryan Finnie <ryan@finnie.org>:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 09:27:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Ryan Finnie <ryan@finnie.org>. (Tue, 20 Nov 2012 09:27:07 GMT) Full text and rfc822 format available.

Message #10 received at 693774@bugs.debian.org (full text, mbox):

From: md@Linux.IT (Marco d'Itri)
To: debian-devel@lists.debian.org, 693774@bugs.debian.org
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 10:21:38 +0100
[Message part 1 (text/plain, inline)]
On Nov 20, Ryan Finnie <ryan@finnie.org> wrote:

>   Description     : Build a Finnix bootloader stanza on GRUB 2 systems
I think that you should add one or two lines to explain what Finnix is.
At least, the word "rescue" would help a lot...

>  Note that there are certain restrictions regarding where the ISO may be 
>  placed.  Please see README.Debian for installation instructions and 
>  restrictions.
Does this really have to be in the package description?
I think that we can assume the "you should read README.Debian for more 
information" part for all packages...

> I talked about this briefly with Paul Wise, and while there are several 
> existing packages which do similar GRUB loaders for other projects 
Hopefully the wide availability of well integrated rescue systems will 
make happy the few people who complain that in the future the root file 
system is going to be less and less useful as a rescue system.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 10:27:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Finnie <ryan@finnie.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Tue, 20 Nov 2012 10:27:03 GMT) Full text and rfc822 format available.

Message #15 received at 693774@bugs.debian.org (full text, mbox):

From: Ryan Finnie <ryan@finnie.org>
To: debian-devel@lists.debian.org, 693774@bugs.debian.org
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 02:22:49 -0800
[Message part 1 (text/plain, inline)]
On 11/20/2012 01:21 AM, Marco d'Itri wrote:
>>   Description     : Build a Finnix bootloader stanza on GRUB 2 systems
> I think that you should add one or two lines to explain what Finnix is.
> At least, the word "rescue" would help a lot...

Good idea; looking back, I was writing the description from the view as
a distribution developer, not an end user.  How about:

Description: Boot a Finnix rescue/maintenance ISO from GRUB 2
 grub-finnix is a GRUB 2 configuration hook to boot compatible versions
 of Finnix, a Debian-based rescue and maintenance LiveCD distribution,
 from ISOs stored on the host filesystem. The stanzas built utilize GRUB
 2's loopback mount support to boot a Finnix kernel and initrd, and
 passes the location of the ISO to Finnix.  Finnix's first-stage initrd
 then searches for the partition containing the specified ISO.

>>  Note that there are certain restrictions regarding where the ISO may be 
>>  placed.  Please see README.Debian for installation instructions and 
>>  restrictions.
> Does this really have to be in the package description?
> I think that we can assume the "you should read README.Debian for more 
> information" part for all packages...

True, but that was more to guide the user, given the fact that the
package does absolutely nothing without user configuration.  Perhaps in
postinst I can read in /etc/default/grub-finnix, check if FINNIX_ISO is
set, and if not, mention that it must be configured from
/etc/default/grub-finnix.  The default file itself currently contains
some basic instructions and a mention of README.Debian for more detailed
information.  Suggestions?

RF

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Ryan Finnie <ryan@finnie.org>:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 10:42:20 GMT) Full text and rfc822 format available.

Acknowledgement sent to gustavo panizzo <gfa@zumbi.com.ar>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Ryan Finnie <ryan@finnie.org>. (Tue, 20 Nov 2012 10:42:20 GMT) Full text and rfc822 format available.

Message #20 received at submit@bugs.debian.org (full text, mbox):

From: gustavo panizzo <gfa@zumbi.com.ar>
To: Ryan Finnie <ryan@finnie.org>,693774@bugs.debian.org,Ryan Finnie <ryan@finnie.org>,Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 07:41:27 -0300

Ryan Finnie <ryan@finnie.org> wrote:

>Package: wnpp
>Severity: wishlist
>Owner: Ryan Finnie <ryan@finnie.org>
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>* Package name    : grub-finnix
>  Version         : 107
>  Upstream Author : N/A, native package
>* URL             : N/A, native package
>* License         : GPL
>  Programming Lang: Shell (dash-compatible /etc/grub.d hook)
>  Description     : Build a Finnix bootloader stanza on GRUB 2 systems
>
>Extended description:
> grub-finnix is a GRUB2 configuration hook to boot Finnix, given a 
> compatible ISO.  The stanzas built utilize GRUB 2's loopback mount 
>support to boot a Finnix kernel and initrd, and passes the location of 
> the ISO to Finnix.  Finnix's first-stage initrd then searches for the 
> partition containing the specified ISO.
> .

is that different from current boot from iso support on grub-iso package?



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Ryan Finnie <ryan@finnie.org>:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 10:42:25 GMT) Full text and rfc822 format available.

Acknowledgement sent to gustavo panizzo <gfa@zumbi.com.ar>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Ryan Finnie <ryan@finnie.org>. (Tue, 20 Nov 2012 10:42:25 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 11:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Finnie <ryan@finnie.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Tue, 20 Nov 2012 11:42:03 GMT) Full text and rfc822 format available.

Message #30 received at 693774@bugs.debian.org (full text, mbox):

From: Ryan Finnie <ryan@finnie.org>
To: gustavo panizzo <gfa@zumbi.com.ar>
Cc: 693774@bugs.debian.org
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 03:38:58 -0800
[Message part 1 (text/plain, inline)]
On 11/20/2012 02:41 AM, gustavo panizzo wrote:
> is that different from current boot from iso support on grub-iso package?

I don't see a grub-iso package?

RF


[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Ryan Finnie <ryan@finnie.org>:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 15:03:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "gustavo panizzo <gfa>" <gfa@zumbi.com.ar>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Ryan Finnie <ryan@finnie.org>. (Tue, 20 Nov 2012 15:03:05 GMT) Full text and rfc822 format available.

Message #35 received at 693774@bugs.debian.org (full text, mbox):

From: "gustavo panizzo <gfa>" <gfa@zumbi.com.ar>
To: Ryan Finnie <ryan@finnie.org>
Cc: <693774@bugs.debian.org>
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 12:00:12 -0300

On 2012-11-20 8:38, Ryan Finnie wrote:
> On 11/20/2012 02:41 AM, gustavo panizzo wrote:
>> is that different from current boot from iso support on grub-iso 
>> package?
>
> I don't see a grub-iso package?

sorry, package is grub-imageboot

>
> RF



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#693774; Package wnpp. (Tue, 20 Nov 2012 23:09:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Finnie <ryan@finnie.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Tue, 20 Nov 2012 23:09:06 GMT) Full text and rfc822 format available.

Message #40 received at 693774@bugs.debian.org (full text, mbox):

From: Ryan Finnie <ryan@finnie.org>
To: "gustavo panizzo <gfa>" <gfa@zumbi.com.ar>
Cc: 693774@bugs.debian.org
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 15:07:19 -0800
[Message part 1 (text/plain, inline)]
On 11/20/2012 07:00 AM, gustavo panizzo <gfa> wrote:
>> I don't see a grub-iso package?
> 
> sorry, package is grub-imageboot

Ahh.  No, grub-imageboot won't work.  It works by chaining memdisk,
which boots ISOs by emulating INT 13h.  This works fine for simple ISOs
such as DOS, or Linux with just a kernel and initrd.  But most Linux
bootable CDs need to be able to find itself via block devices.  See
http://www.syslinux.org/wiki/index.php/MEMDISK#Linux

grub-finnix builds GRUB stanzas which use the GRUB ISO loopback
functionality to boot the kernel and initrd, and then pass
findiso=/path/to/finnix.iso so that the initrd can scan partitions, find
the specified ISO and mount it.

grub-finnix also does some Finnix-specific stuff such as extracting the
Finnix version, checking which kernels are in the ISO and building
appropriate stanzas (most 32-bit userland builds include both 32-bit and
64-bit kernels, while 64-bit userland builds just include the amd64
kernel), and making sure the correct initrd is chosen (uncompressed, gz
or xz).

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Ryan Finnie <ryan@finnie.org>:
Bug#693774; Package wnpp. (Wed, 21 Nov 2012 00:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "gustavo panizzo <gfa>" <gfa@zumbi.com.ar>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Ryan Finnie <ryan@finnie.org>. (Wed, 21 Nov 2012 00:09:03 GMT) Full text and rfc822 format available.

Message #45 received at 693774@bugs.debian.org (full text, mbox):

From: "gustavo panizzo <gfa>" <gfa@zumbi.com.ar>
To: Ryan Finnie <ryan@finnie.org>
Cc: <693774@bugs.debian.org>
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Tue, 20 Nov 2012 21:07:31 -0300
thanks for a such complete explanation, good luck getting your package 
into debian, i will probably use it :)


PS: just a suggestion, would you change it's name to something more 
generic? like grub-initrd (?), since it could be used to boot other 
distros



Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org, Ryan Finnie <ryan@finnie.org>:
Bug#693774; Package wnpp. (Sun, 02 Dec 2012 11:57:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to wnpp@debian.org, Ryan Finnie <ryan@finnie.org>. (Sun, 02 Dec 2012 11:57:06 GMT) Full text and rfc822 format available.

Message #50 received at 693774@bugs.debian.org (full text, mbox):

From: md@Linux.IT (Marco d'Itri)
To: Ryan Finnie <ryan@finnie.org>
Cc: 693774@bugs.debian.org
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Sun, 2 Dec 2012 12:54:02 +0100
[Message part 1 (text/plain, inline)]
On Nov 20, Ryan Finnie <ryan@finnie.org> wrote:

> > I think that we can assume the "you should read README.Debian for more 
> > information" part for all packages...
> True, but that was more to guide the user, given the fact that the
> package does absolutely nothing without user configuration.  Perhaps in
This applies to many other packages as well.

> postinst I can read in /etc/default/grub-finnix, check if FINNIX_ISO is
> set, and if not, mention that it must be configured from
> /etc/default/grub-finnix.
Please don't! This way you will annoy everybody on every new install.
It would be much better if you could e.g. automatically set FINNIX_ISO 
in postinst to the most recent file matching /boot/finnix-*.iso.

> The default file itself currently contains
> some basic instructions and a mention of README.Debian for more detailed
> information.  Suggestions?
Great, I think that this is enough to point users to the documentation.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#693774; Package wnpp. (Fri, 07 Dec 2012 03:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Finnie <ryan@finnie.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Fri, 07 Dec 2012 03:51:03 GMT) Full text and rfc822 format available.

Message #55 received at 693774@bugs.debian.org (full text, mbox):

From: Ryan Finnie <ryan@finnie.org>
To: Marco d'Itri <md@Linux.IT>
Cc: 693774@bugs.debian.org
Subject: Re: Bug#693774: ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems
Date: Thu, 06 Dec 2012 19:46:44 -0800
[Message part 1 (text/plain, inline)]
On 12/02/2012 03:54 AM, Marco d'Itri wrote:
>> postinst I can read in /etc/default/grub-finnix, check if FINNIX_ISO is
>> set, and if not, mention that it must be configured from
>> /etc/default/grub-finnix.
> Please don't! This way you will annoy everybody on every new install.
> It would be much better if you could e.g. automatically set FINNIX_ISO 
> in postinst to the most recent file matching /boot/finnix-*.iso.

I meant a simple echo warning, not a blocking db_input notification.
Still, I can appreciate not cluttering dpkg output, so I have removed that.

On your suggestion, I added to ability to check for /boot/finnix-*.iso
or any Finnix ISOs in /boot/finnix and update /etc/default/grub-finnix,
but then removed it.  I didn't like the idea of postinst arbitrarily
modifying a conffile, so now /etc/default/grub-finnix just contains
/boot/finnix by default.  If it exists and contains Finnix ISOs, it will
be processed.  If not, nothing will happen.

FYI, the bzr repo URL changed slightly from my original post, it is now:

https://code.launchpad.net/~finnix/finnix/grub-finnix-pkg

RF

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, wnpp@debian.org:
Bug#693774; Package wnpp. (Tue, 16 Apr 2013 18:03:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ryan Finnie <ryan@finnie.org>:
Extra info received and forwarded to list. Copy sent to wnpp@debian.org. (Tue, 16 Apr 2013 18:03:05 GMT) Full text and rfc822 format available.

Message #60 received at 693774@bugs.debian.org (full text, mbox):

From: Ryan Finnie <ryan@finnie.org>
To: control@bugs.debian.org, 693774@bugs.debian.org
Cc: debian-devel@lists.debian.org, debian-derivatives@lists.debian.org
Subject: ITP: grub-loopback-iso -- Boot a compatible loopback ISO from GRUB 2
Date: Tue, 16 Apr 2013 10:58:43 -0700
[Message part 1 (text/plain, inline)]
retitle 693774 ITP: grub-loopback-iso -- Boot a compatible loopback
 ISO from GRUB 2
kthxbye

(Please excuse the perfect storm of bugs + multiple lists.)

As it turns out, grml invented a generic way of allowing it to be booted
as an ISO from GRUB 2, with a file in the ISO called
/boot/grub/loopback.cfg.  Other distros/utilities, including Super Grub2
Disk and Ubuntu have adopted this, and Finnix will as well, as of the
forthcoming 108 release.

In that light, I have rewritten grub-finnix as grub-loopback-iso, which
is an update-grub2 hook which scans a directory of ISOs an looks for
/boot/grub/loopback.cfg within them, and will build grub.cfg stanzas
which chain that file.  The method is similar to how Super Grub2 Disk
works, and will support any distro ISO which ships a
/boot/grub/loopback.cfg file.

Package: grub-loopback-iso
Architecture: i386 amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, grub-pc (>= 1.99-1)
Description: Boot a compatible loopback ISO from GRUB 2
 grub-loopback-iso is a GRUB 2 configuration hook to boot compatible
 ISOs stored on the host filesystem. The stanzas built utilize GRUB
 2's loopback mount support to chain a /boot/grub/loopback.cfg file on
 an ISO.

The source archive URL has therefore (once again) been renamed to:
https://code.launchpad.net/~finnix/finnix/grub-loopback-iso-pkg

(loopback.cfg would also be a nice feature for d-i ISOs to ship, as well
as any other derivatives (or any distro at all) which supports the
findiso= or iso-scan/filename= feature.)

RF

[signature.asc (application/pgp-signature, attachment)]

Changed Bug title to 'ITP: grub-loopback-iso -- Boot a compatible loopback' from 'ITP: grub-finnix -- Build a Finnix bootloader stanza on GRUB 2 systems' Request was from Ryan Finnie <ryan@finnie.org> to control@bugs.debian.org. (Tue, 16 Apr 2013 18:03:08 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 21:47:42 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.