File: tips

package info (click to toggle)
lessdisks 0.5.3cvs.20040906-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,480 kB
  • ctags: 271
  • sloc: sh: 3,058; makefile: 92
file content (47 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
this file contains a few pointers which make lessdisks more enjoyable to have
around.  (also see the "More Tips and Tricks" section in the "installation"
doc)

trimming the initrd:

this makes the initrd not include a lot of extra modules (such as hard-drive)
which are not needed for lessdisks during boot.  this will save you a little
space, and have faster boot times.

in /var/lib/lessdisks/etc/mkinitrd/mkinitrd.conf:

MODULES="" 

remove network card modules you don't need from
/var/lib/lessdisks/etc/lessdisks/mkinitrd/initrd-netboot.conf:

nic_modules="3c59x eepro100 tulip"

be sure to only remove ones you know you don't need, though!

you can also try changing MODULES=all to MODULES=dep in
/etc/mkinitrd/mkinitd.conf, this will remove all the disk drivers from the
initrd.

and then:

lessdisks-chroot dpkg-reconfigure kernel-image-X.X.X-XXX

to find out the kernel-packages name:

COLUMNS=140 lessdisks-chroot dpkg -l kernel-image* | egrep ^ii


running custom scripts:

if you need to configure a particular terminal to do a particular thing...

set "$session" in /etc/lessdisks/$hostname, it will look for that script and
execute it the following search order:

/etc/lessdisks/sessions.d/$session
$PATH (i.e. /usr/sbin/$session, /usr/bin/$session)
$session (i.e. the full path: /usr/local/sbin/my_custom_script or /etc/lessdisks/terminals/terminal.script)


Last Edited: $Id: tips,v 1.2 2004/07/19 23:13:43 vagrant Exp $