Re: apt-cdrom and loopback .iso files
Chris Kenrick wrote:
> I guess the really kludgy workaround is to reburn the CD's
> yourself. You can probably get away with just a subset of them
> (apparently the most common stuff fits on three cds, not sure which
> three though :) )
I was hoping not to have to resort to that. Though I suppose that
reburning disc 1 would allow me to include the recent security update in
openssl :)
I've had a further think about automating apt-get. I'd have to do:
1) As normal up to apt saying `please insert CD'.
2) Insert CD
3) Run following script
#!/bin/bash
mount /cdrom
# /cdrom is already taken care of by fstab
ISOFILE=`ls /cdrom/*.iso`
# I should put in a check that there is exactly one .iso file
ln -fs /cdrom/$ISOFILE /dev/woodyiso
4) Hit enter to continue apt-get process. With suitable entries in
/etc/fstab to mount /dev/woodyiso as a loopback device, and a change in
apt's config file to use /dev/woodyiso as the default CD device, this
would then work.
So the only improvement I need is to have the script run automatically
when I press Enter to indicate that the CD is in the drive. Is there a
nice way of doing this, or will I have to hack it into the apt-get
source?
Glyn
--
Weather's foul, glad you're not here.
Reply to: