MOUNT_POINT="/cdrom"
## find mountpoint for simple_cdd
find_simple_cdd_mount() {
mount_points=$(mount | awk '{print $3}')
for point in $mount_points; do
if [ -d "$point/simple-cdd" ]; then
echo "$point"
return 0
fi
done
find / -name "simple-cdd" -type d 2>/dev/null | while read path; do
mount_point=$(df "$path" 2>/dev/null | awk 'NR==2 {print $6}')
if [ -n "$mount_point" ] && [ "$mount_point" != "/" ]; then
echo "$mount_point"
return 0
fi
done
return 1
}
MOUNT_POINT=$(find_simple_cdd_mount)/simple-cdd d-i preseed/early_command string anna-install simple-cdd-profilesexport ARCH="i386 amd64"
export OMIT_MANUAL=1
export OMIT_RELEASE_NOTES=1
profiles="custom"
auto_profiles="custom"
locale=ru_RU
export NONFREE=1
mirror_components="main non-free"
debian_mirror="http://deb.debian.org/debian/"
security_mirror="http://security.debian.org/debian-security"
KERNEL_PARAMS="DEBIAN_FRONTEND=text fb=false gfxpayload=text nomodeset"
Пока без финансовых вложений, так что open-source наше все.