integrate-distro.sh: Add more packages

- Add packages
    - Kernel-syms
    - Kernel-source
    - Suspend
    - Unclutter
    - Feedfs-local-run
    - Feedfs-net-run
    - Netscan-run
  - Add generation of /etc/sysctl.conf /etc/fstab.netboot /etc/fstab
This commit is contained in:
Jan Lindemann 2011-06-28 17:50:41 +00:00 committed by Jan Lindemann
commit d03867c3de

View file

@ -13,6 +13,8 @@ unused_pkgs="
sysvinit-systemd
kernel
kernel-default-2.6.37.6~jng135-4
kernel-syms-2.6.37.6~jng135-4
kernel-source-2.6.37.6~jng135-4
aufs-kmp
"
@ -69,6 +71,7 @@ payload_pkgs="
mdadm
device-mapper
insserv
suspend
dhcpcd
nfs-client
@ -95,6 +98,7 @@ payload_pkgs="
xorg-x11-Xnest
xorg-x11-Xvfb
xorg-x11-Xvnc
unclutter
xterm
@ -116,11 +120,15 @@ payload_pkgs="
cvs
patch
ytools-run
pciutils
ytools-run
jux-run
jux-client-run
feedfsd-run
feedfs-local-run
feedfs-net-run
netscan-run
snmp-manager-run
ftp-server-run
bprof-run
@ -412,6 +420,33 @@ make_etc_fstab()
EOT
}
make_etc_sysctl_conf()
{
_cat<<EOT
|# Disable response to broadcasts.
|# You don't want yourself becoming a Smurf amplifier.
|net.ipv4.icmp_echo_ignore_broadcasts = 1
|# enable route verification on all interfaces
|net.ipv4.conf.all.rp_filter = 1
|# disable IPv6 completely
|# net.ipv6.conf.all.disable_ipv6 = 1
|# enable IPv6 forwarding
|#net.ipv6.conf.all.forwarding = 1
|# increase the number of possible inotify(7) watches
|fs.inotify.max_user_watches = 65536
|# avoid deleting secondary IPs on deleting the primary IP
|net.ipv4.conf.default.promote_secondaries = 1
|net.ipv4.conf.all.promote_secondaries = 1
|
|# by jan
|kernel.core_pattern = /var/cores/core.%h.%e.%p
|net.ipv4.ip_forward = 1
|net.ipv4.tcp_tw_recycle = 1
|net.ipv4.tcp_tw_reuse = 1
|dev.rtc.max-user-freq = 4096
EOT
}
make_etc_fstab_local_boot()
{
_cat<<EOT
@ -470,6 +505,16 @@ make_netboot_etc_openldap_ldap_conf()
'
}
make_netboot_etc_fstab()
{
make_etc_fstab
_cat<<EOT
|
|# netboot client
|/var/cores bootsrv:/var/cores nfs rw,rsize=8192,wsize=8192,async 0 0
EOT
}
make_sysconfig_bootloader()
{
_cat << EOT
@ -699,6 +744,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
make_netboot_etc_fstab > $root/etc/fstab.netboot
make_etc_openldap_ldap_conf > $root/etc/openldap/ldap.conf
chmod 644 $root/etc/openldap/ldap.conf
@ -706,6 +752,7 @@ cmd_install()
make_etc_ldap_conf > $root/etc/hosts
make_etc_hosts > $root/etc/hosts
make_etc_fstab > $root/etc/fstab
make_etc_sysctl_conf > $root/etc/sysctl.conf
host_zypper "base" install --auto-agree-with-licenses coreutils
host_zypper "base update" install --auto-agree-with-licenses zypper
@ -741,6 +788,7 @@ cmd_install()
install -m 755 -d $root/srv/nfs/boot/pxe/bin
install -m 755 -d $root/srv/nfs/var
install -m 777 -d $root/srv/nfs/var/cores
install -m 777 -d $root/var/cores
for c in \
/etc/pam.d/* \