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

[debian-knoppix] Integration of persistent-home in 3.2



On Thu, Feb 06, 2003 at 10:01:58PM +0000, Matthias Schwarze wrote:
> After all, it can only be Klaus' decision! For me either ways are ok,
> but a short statement on this would be nice. I got quite some emails
> about "when does it get integrated" (and even in the discussion boards)
> and i don't really know what to answer. ;-)

I'm working on this right now. I just implemented the following features
for 3.2:

- The "floppyconfig" and "myconfig" boot options now accept a device or
  directory as parameter (i.e. myconfig=/dev/sda1), so you can specify
  the device you want to load your knoppix.sh/configs.tbz from. (works)

- If you say "myconfig=scan", all partitions are scanned for a
  knoppix.sh, and the first one found will be executed. (Untested yet)

- New boot option: home=/dev/partitionname or
  home=/mnt/partitionname/file.img looks for a persistent home image
  which will be mounted over /home/knoppix at boot time. If no such
  image is found, the entire partition is mounted (unless it is NTFS).
  AES encrypted partitions should be supported via aes-loop.
  (Seems to work, but not thoroughly tested yet)

- home=scan scans all partitions for a file called "knoppix.img" which
  contains an ext2 image with /home/knoppix, where it will be mounted.
  Excrypted images should be supported here, too. (Untested)

- A script much alike saveconfig that creates an ext2 image (with
  optional encryption), or which formats a harddisk partition on request
  as /home/knoppix repository, (X)dialog-based, has beedn added to the
  KNOPPIX menu.

I'm not going to implement a full automatic search without interaction,
because, as mentioned before, someone could plug in a memory stick into
your computer, unnoticed, with scripts that may ruin or steal your data.

Therefore, the shortest way to get to your persistent home will be
home=scan and (optional) myconfig=scan at the boot: prompt.

You could still modify your boot floppy image to contain these options,
of course, if you REALLY want to automatically execute or mount stuff from
attached devices.

So far, I did not add an automatic e2fsck, so in case of a crash, you
should check the image files manually.

I took some of the code from Matthias Schwarzes wonderful
knx_persistent_home shell scripts, but most parts of it are new and
entirely untested. Sorry, I cannot make a new public release for CeBit
before everything is tested thoroughly to make sure that those scripts
don't have the potential to destroy valuable data.

Regards
-Klaus
-- 
Klaus Knopper                           Technical Solutions & Finances
knopper@linuxtag.org                          http://www.linuxtag.org/
Phone +49-(0)631-3109371                        Fax +49-(0)631-3109372
LinuxTag 2003 - Europes largest Linux Expo       Where .com meets .org
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: