View | Details | Raw Unified | Return to bug 19388
Collapse All | Expand All

(-)file_not_specified_in_diff (-49 / +1 lines)
Lines 185-190 Link Here
185
# LVM constants
186
HAVE_LVM=
187
LVM_MODNAME="dm-mod"
188
LVM=/sbin/lvm.static
189
[ -x "$LVM" ] || LVM=
190
Lines 962-968 Link Here
962
FindLVMModules()
963
{
964
	if [ -n "$HAVE_LVM" ]; then
965
		FindModule $LVM_MODNAME 
966
	fi 
967
}
968
Lines 1101-1116 Link Here
1101
ConfigInitramfsForLVM()
1102
{
1103
# this is creating of script for init of LVM
1104
	cat >>"$MNTDIR"/scripts/local-top <<'EOF'
1105
# Preparing LVM			-*- shell-script -*-
1106
1107
log_begin_msg "Starting up LVM"
1108
1109
vgscan
1110
vgchange -ay
1111
1112
log_end_msg
1113
EOF
1114
1115
}
1116
Lines 1213-1223 Link Here
1213
	
1214
	if [ -n "$HAVE_LVM" ]; then
1215
		if [ -z $LVM ]; then 
1216
			Fatal "Couldn't find executable lvm.static " 
1217
		fi
1218
		Cp -aL "$LVM" "$MNTDIR"/sbin/
1219
		cd "$MNTDIR"/sbin/
1220
		Ln -s lvm.static vgscan
1221
		Ln -s lvm.static vgchange
1222
		ConfigInitramfsForLVM
1223
	fi
Line 1365 Link Here
1365
--with-lvm			enable LVM support.
Line 1388 Link Here
1388
TEMP=`getopt -n "$PROG" -o a:fhvd -l help,version,verbose,debug,force,ifneeded,omit-scsi-modules,omit-ide-modules,omit-raid-modules,with-raid,with-lvm,pause,image-version,nocompress,nobootsplash,strict,fstab:,before:,preload:,with:,after:,extra:,type:,add: -- "$@"` || Usage 1
1347
TEMP=`getopt -n "$PROG" -o a:fhvd -l help,version,verbose,debug,force,ifneeded,omit-scsi-modules,omit-ide-modules,omit-raid-modules,with-raid,pause,image-version,nocompress,nobootsplash,strict,fstab:,before:,preload:,with:,after:,extra:,type:,add: -- "$@"` || Usage 1
1389
--
Lines 1461-1464 Link Here
1461
		--with-lvm)
1462
			HAVE_LVM=1
1463
			shift
1464
			;;
Lines 1579-1580 Link Here
1579
FindLVMModules
1580

Return to bug 19388