|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Local Hook DefinitionsI can't get my head round Local Hook Definitions in debian-cd's CONF.sh,
in particular RESERVED_BLOCKS_HOOK. If someone would give me a working example I would be grateful. Phil. -- Philip Charles; 39a Paterson Street, Abbotsford, Dunedin, New Zealand +64 3 488 2818 Fax +64 3 488 2875 Mobile 027 663 4453 philipc@... - personal. info@... - business -- To UNSUBSCRIBE, email to debian-cd-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Local Hook DefinitionsOn Thu, Oct 01, 2009 at 10:28:26PM +1300, Philip Charles wrote:
>I can't get my head round Local Hook Definitions in debian-cd's CONF.sh, >in particular RESERVED_BLOCKS_HOOK. If someone would give me a working >example I would be grateful. Hi Phil! It seems you're the first person to ask about the hooks since I added them in debian-cd nearly three years ago. For that hook, you need to print the number of 2K blocks that you want to reserve on a given CD so that debian-cd will leave the space for you when it is calculating what will fit. I *believe* it works, but I don't still have the stuff I tested with back then. What are you trying to do? I might be able to help... -- Steve McIntyre, Cambridge, UK. steve@... Mature Sporty Personal More Innovation More Adult A Man in Dandism Powered Midship Specialty -- To UNSUBSCRIBE, email to debian-cd-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
|
|
|
Re: Local Hook DefinitionsOn Fri, 02 Oct 2009, Steve McIntyre wrote:
> >> Hi Phil! > >> > >> It seems you're the first person to ask about the hooks since I > >> added them in debian-cd nearly three years ago. For that hook, you > >> need to print the number of 2K blocks that you want to reserve on a > >> given CD so that debian-cd will leave the space for you when it is > >> calculating what will fit. I *believe* it works, but I don't still > >> have the stuff I tested with back then. > >> > >> What are you trying to do? I might be able to help... > > > >Greetings Steve, > > > >I have been reinfected with the Hurd bug and it is itching. > > > :-) > : > >Confession. Up to now I have been hacking scripts to do Hurdish > > things with debian-cd, but now I have reformed and wish to use the > > hooks. > > OK, cool. > > >1. I want to reserve space on the first image for the the > >boot/installation system. boot-floppies (shudder). > > RESERVE_BLOCKS_HOOK > > Right, OK. That should be easy enough. You can calculate how much > space they'll take. It is the syntax I can't cope with. I see that the hook points to a file/script, but what is its structure? O for SIZELIMIT${CD}, it hacked beautifully. > > >2. To remove packages from the first image which are included in the > >installation tarball (the sexy name is baseGNU.tgz) DISC_FINISH_HOOK > > Ah, now that's a little more thorny. I'd think the easiest way would > be to extend debian-cd a little and add support for another hook to > list packages that are (essentially) already installed in the image by > other means. Then make_disc_trees.pl and friends will simply not > include those packages when working through the list they > need. Dependencies will be satisfied, etc. > > Does that sound like a sane way to go for you? A grep -v loop on ../sid/packages (or is it packages.hurd-i386) and go out for lunch. Thanks. Phil. -- Philip Charles; 39a Paterson Street, Abbotsford, Dunedin, New Zealand +64 3 488 2818 Fax +64 3 488 2875 Mobile 027 663 4453 philipc@... - personal. info@... - business -- To UNSUBSCRIBE, email to debian-cd-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Local Hook DefinitionsOn Fri, Oct 02, 2009 at 08:04:09AM +1300, Philip Charles wrote:
>On Fri, 02 Oct 2009, Steve McIntyre wrote: >> >> >1. I want to reserve space on the first image for the the >> >boot/installation system. boot-floppies (shudder). >> > RESERVE_BLOCKS_HOOK >> >> Right, OK. That should be easy enough. You can calculate how much >> space they'll take. > >It is the syntax I can't cope with. I see that the hook points to a >file/script, but what is its structure? O for SIZELIMIT${CD}, it hacked >beautifully. It might have done, but it was a total PITA to support reliably. Trying to get CDs and DVDs close to full without going over could take forever when we were doing releases. And multi-arch discs were just not possible with the old layout code. Sorry... Using the new hook script shouldn't be much more difficult - you could just use the fourth parameter ($CDDIR) as a lookup into a table of sizes you've already calculated somewhere. >> >2. To remove packages from the first image which are included in the >> >installation tarball (the sexy name is baseGNU.tgz) DISC_FINISH_HOOK >> >> Ah, now that's a little more thorny. I'd think the easiest way would >> be to extend debian-cd a little and add support for another hook to >> list packages that are (essentially) already installed in the image by >> other means. Then make_disc_trees.pl and friends will simply not >> include those packages when working through the list they >> need. Dependencies will be satisfied, etc. >> >> Does that sound like a sane way to go for you? > >A grep -v loop on ../sid/packages (or is it packages.hurd-i386) and go out >for lunch. OK. If this sounds like a good way to go, the code should be quite easy. -- Steve McIntyre, Cambridge, UK. steve@... "Because heaters aren't purple!" -- Catherine Pitt -- To UNSUBSCRIBE, email to debian-cd-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
| Free embeddable forum powered by Nabble | Forum Help |