[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simple fix to /usr/sbin/sambastart



Klaus Knopper wrote:
On Thu, Nov 16, 2006 at 03:17:46PM +0000, keith hodges wrote:
2. I would like to request that there be a standard place in my knoppix.img disk image in which to place a knoppix.sh startup script.
I would suggest that the "standard" place should be the root of
knoppix.img, i.e. /KNOPPIX.IMG/knoppix.sh. I will add that to
the knoppix-image script, it's a missing feature.

On the other hand, since knoppix.img is mounted in knoppix-autoconfig,
you could as well just use an init script in /etc/rc5.d/ that will be
executed after the image was mounted. So, maybe /KNOPPIX.IMG/knoppix.sh
is no really necessary.
I convinced Kano to add the running of a /home/knoppix/.knoppix.sh script towards the end of the live autoconfig script?

You can see the code towards the end of the file at:

http://svn.berlios.de/svnroot/repos/fullstory/initscripts-kanotix-live/trunk/debian/live-autoconfig.init
Just to let you know that I use knoppix as my main working environment. I use the dvd iso on a hard disk partition with the bootfrom option.

It would be nice to have the option to be able to specify a partition/usb stick as the home directories area, rather than the img file. This could be picked up automatically like a swap partition is.

Difficult, how would you distinguish between, for example, a
harddisk-installation of Knoppix, or a USB disk with a to-go image?
You could (as someone else already has, perhaps ubuntu) use disk labels (perhaps optionally also a ".knoppix-disk" file as an alternative, with e.g. "home" as it's contents)? Perhaps if home=scan is given it can use a disk labelled "knoppix-home" or similar if it finds one?
his could be risky. You don't want to overwrite non-knoppix partitions
accidentially. Maybe it could work if you say knoppix home=/dev/sda1
at the boot prompt.

The final alternative around all of this is also a kanotix'ism, where the autoconfig script will run a config script from /cdrom (it should also do /isosrc on kanotix though it doesn't :-( ). This means you can potentially run any or all of (in this order):

1.   The knoppix.sh from the cd (perhaps a remaster)
2. The knoppix.sh from the command line (perhaps with auto for machine specific config)
3.   The knoppix.sh from your home (for the very users own tweaks)

Where ideally 1.5 would be to run the knoppix.sh from the bootfrom=* / fromiso=* location so you can dump an iso to a disk and put a config beside it.

Of course if you can use any of these you can setup your own crazy extensions however you want.

Also note that kanotix also gained a cheatcode to turn each of these off (noconfigcd, noconfighome, noconfigcheat) and one to turn the lot off (noconfigall).
Regards
-Klaus Knopper
Niall



Reply to: