Added warning about etch compatibility of lh_config options.

This commit is contained in:
Daniel Baumann 2007-11-11 14:14:25 +01:00
parent 8635931e79
commit 0408e7ebba
2 changed files with 23 additions and 0 deletions

View File

@ -594,3 +594,23 @@ Set_defaults ()
# Setting fakeroot/fakechroot # Setting fakeroot/fakechroot
LH_USE_FAKEROOT="${LH_USE_FAKEROOT:-disabled}" LH_USE_FAKEROOT="${LH_USE_FAKEROOT:-disabled}"
} }
Check_defaults ()
{
if [ "${LH_DISTRIBUTION}" = "etch" ]
then
if [ "${LH_INITRAMFS}" = "live-initramfs" ]
then
Echo_warning "You selected LH_DISTRIBUTION='etch' and LH_INITRAMFS='live-initramfs'"
Echo_warning "This is a possible unsave configuration as live-initramfs is not"
Echo_warning "part of the etch distribution."
fi
if [ "${LH_UNION_FILESYSTEM}" = "aufs" ]
then
Echo_warning "You selected LH_DISTRIBUTION='etch' and LH_UNION_FILESYSTEM='aufs'"
Echo_warning "This is a possible unsave configuration as aufs is not"
Echo_warning "part of the etch distribution."
fi
fi
}

View File

@ -623,6 +623,9 @@ then
Read_conffile "${LH_CONFFILE}" Read_conffile "${LH_CONFFILE}"
fi fi
# Checking defaults
Check_defaults
# Creating bootstrap configuration # Creating bootstrap configuration
mkdir -p config mkdir -p config
mkdir -p config/includes mkdir -p config/includes