integrate-distro.sh: Ongoing improvements

- Add package xterm
  - Add additional check to prevent accidental deletion of bind-mounts
  - Add preliminary configuration of eth0
This commit is contained in:
Jan Lindemann 2011-06-24 09:45:50 +00:00 committed by Jan Lindemann
commit 9b0da21b0e

View file

@ -96,6 +96,8 @@ payload_pkgs="
xorg-x11-Xvfb
xorg-x11-Xvnc
xterm
man
findutils-locate
vim
@ -627,6 +629,13 @@ setup_root_directory()
set +e
unmount_devices /proc /sys /dev
grep -q $root /proc/mounts && {
echo "====== there are filesystems mounted below $root: >"
grep $root /proc/mounts
echo "====== unmount them manually"
exit 1
}
run rm -rf $root
run install -d -m 755 $root
fi
@ -693,6 +702,7 @@ cmd_install()
make_netboot_etc_ldap_conf > $root/etc/ldap.conf.netboot
make_netboot_etc_openldap_ldap_conf > $root/etc/openldap/ldap.conf.netboot
make_netboot_etc_hosts > $root/etc/hosts.netboot
echo "STARTMODE='nfsroot'" > $root/etc/sysconfig/network/ifcfg-eth0.netboot
make_etc_openldap_ldap_conf > $root/etc/openldap/ldap.conf
chmod 644 $root/etc/openldap/ldap.conf