Fix hardcoded paths in multipath support
[genkernel.git] / defaults / initrd.defaults
1 #!/bin/ash
2
3 PATH="/usr/sbin:/usr/bin:/sbin:/bin"
4
5 # Insert ctrl character
6 # ctrl-V then esc will print ^[
7 # ctrl-V then ctrl-shift-m will print ^M
8 BACK_UP="\033[1K\033[0G"
9 NORMAL="\033[0m"
10 WARN="\033[33;1m"
11 BAD="\033[31;1m"
12 BOLD="\033[1m"
13 GOOD="\033[32;1m"
14
15 # From KNOPPIX LINUXRC
16 # Reset fb color mode
17 RESET="\e]R"
18 # ANSI COLORS
19 # Erase to end of line
20 CRE="
21 \e[K"
22 # Clear and reset Screen
23 CLEAR="\ec"
24 # Normal color
25 NORMAL="\e[0;39m"
26 # RED: Failure or error message
27 RED="\e[1;31m"
28 # GREEN: Success message
29 GREEN="\e[1;32m"
30 # YELLOW: Descriptions
31 YELLOW="\e[1;33m"
32 # BLUE: System mesages
33 BLUE="\e[1;34m"
34 # MAGENTA: Found devices or drivers
35 MAGENTA="\e[1;35m"
36 # CYAN: Questions
37 CYAN="\e[1;36m"
38 # BOLD WHITE: Hint
39 WHITE="\e[1;37m"
40
41 # Clear screen with colormode reset
42 # echo "$CLEAR$RESET"
43 # echo "$CLEAR"
44 # Just go to the top of the screen
45 # echo -n "\e[H\e[J"
46
47 KV=`uname -r`
48 KMAJOR=`echo $KV | cut -f1 -d.`
49 KMINOR=`echo $KV | cut -f2 -d.`
50 KVER="${KMAJOR}.${KMINOR}"
51 MISCOPTS='debug detect'
52
53 if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -eq '6' ]
54 then
55         KV_2_6_OR_GREATER="yes"
56 fi
57
58 QUIET='1'
59 ROOT_LINKS='bin sbin lib lib32 lib64 boot usr opt emul'
60 ROOT_TREES='etc root home var'
61 INSMOD='insmod'
62 if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -gt '4' ]
63 then
64         KSUFF='.ko'
65 else
66         KSUFF='.o'
67 fi
68
69 REAL_ROOT=''
70 CDROOT='0'
71 CDROOT_DEV=''
72 CDROOT_TYPE='auto'
73 NEW_ROOT='/newroot'
74 CDROOT_PATH='/mnt/cdrom'
75 CONSOLE='/dev/console'
76
77 LOOPS='/livecd.loop /zisofs /livecd.squashfs /image.squashfs /livecd.gcloop'
78
79 DEFAULT_NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024"
80
81 # Only sections that are in by default or those that
82 # are not module groups need to be defined here...
83 HWOPTS='keymap cache modules pata sata scsi usb firewire waitscan slowusb lvm dmraid mdadm fs net'
84 MY_HWOPTS='modules pata sata scsi slowusb usb firewire waitscan dmraid mdadm fs net iscsi'