| 1 | # Author: Steven Shiau <steven _at_ clonezilla org> |
| 2 | # License: GPL |
| 3 | # Setting for DRBL environment. |
| 4 | # WARNING! DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
| 5 | # WARNING! DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
| 6 | # WARNING! DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
| 7 | # Keep drblroot="/tftpboot/nodes" and drbl_common_root="/tftpboot/node_root". These settings are already fixed in some programs. |
| 8 | # //NOTE// The variable "DRBL_SCRIPT_PATH" is from system environment variable, and if not defined, it will be "/usr/share/drbl" by default. |
| 9 | drbl_setup_path="$DRBL_SCRIPT_PATH/setup" |
| 10 | # Do NOT put / in the end of $drblroot, it's important |
| 11 | # when using rsync in drbl-setup |
| 12 | # DO NOT modify t$drblroot and $drbl_common_root, it's already fixed for the |
| 13 | # whole system, drblsrv and drblpush use /tftpboot/nodes and /tftpboot/node_root |
| 14 | # Why we put here is only for sometimes we can use them. |
| 15 | drblroot="/tftpboot/nodes" |
| 16 | drbl_common_root="/tftpboot/node_root" |
| 17 | # Assign the NFS protocol, either "nfs3" or "nfs4" (not ready yet). If not assigned, default is nfs3. |
| 18 | drbl_nfs_prot="" |
| 19 | # |
| 20 | if [ -e /etc/debian_version ]; then |
| 21 | # Debian |
| 22 | SYSCONF_PATH="/etc/default/" |
| 23 | # From Debian Squeeze, isc-dhcp-server is used, no more dhcp3-server (as that in etch, lenny...) |
| 24 | if [ -x "/usr/sbin/kea-dhcp4" ] || [ -x "/usr/sbin/isc-kea-dhcp4" ]; then |
| 25 | DHCPDCONF_DIR="/etc/kea" |
| 26 | DHCP_SRV_NAME="kea-dhcp4-server" |
| 27 | elif [ -x "/usr/sbin/dhcpd3" ]; then |
| 28 | DHCPDCONF_DIR="/etc/dhcp3" |
| 29 | DHCP_SRV_NAME="dhcp3-server" |
| 30 | else |
| 31 | DHCPDCONF_DIR="/etc/dhcp" |
| 32 | DHCP_SRV_NAME="isc-dhcp-server" |
| 33 | fi |
| 34 | # DHCPDLEASE_DIR is got from get_dhcpdlease_dir() in drbl-functions |
| 35 | NFS_SRV_NAME="nfs-kernel-server" |
| 36 | YP_SRV_NAME="nis" |
| 37 | # Now GDM_CFG, FAC_GDM_CFG and KDM_CFG are got in drbl-functions. |
| 38 | #GDM_CFG="/etc/X11/gdm/gdm.conf" |
| 39 | #FAC_GDM_CFG="/etc/X11/gdm/factory-gdm.conf" |
| 40 | #KDM_CFG="/etc/kde3/kdm/kdmrc" |
| 41 | RCX_ROOTDIR="/etc" |
| 42 | # The releative path between init.d and rcx.d, for Debian, it's same, so |
| 43 | # in when working dir is in rc.d, service is in ../init.d/ |
| 44 | RCX_REL_INITD="../init.d" |
| 45 | query_allpkgs_cmd="dpkg --get-selections" |
| 46 | query_pkglist_cmd="dpkg -L" |
| 47 | # instead of using dpkg -s, we use dpkg -L, since dpkg -s will give the wrong |
| 48 | # return code if a package is installed but removed later. |
| 49 | query_pkglist_exist_cmd="dpkg -L" |
| 50 | elif [ -e /etc/SuSE-release ]; then |
| 51 | # SuSE |
| 52 | SYSCONF_PATH="/etc/sysconfig/" |
| 53 | DHCPDCONF_DIR="/etc" |
| 54 | # DHCPDLEASE_DIR is got from get_dhcpdlease_dir() in drbl-functions |
| 55 | DHCP_SRV_NAME="dhcpd" |
| 56 | NFS_SRV_NAME="nfs" |
| 57 | YP_SRV_NAME="ypserv" |
| 58 | # Now GDM_CFG, FAC_GDM_CFG and KDM_CFG are got in drbl-functions. |
| 59 | #GDM_CFG="/etc/opt/gnome/gdm/gdm.conf" |
| 60 | #FAC_GDM_CFG="/etc/opt/gnome/gdm/factory-gdm.conf" |
| 61 | #KDM_CFG="/etc/opt/kde3/share/config/kdm/kdmrc" |
| 62 | RCX_ROOTDIR="/etc/init.d" |
| 63 | # The releative path between init.d and rcx.d, for SuSE, it's not same, |
| 64 | # rcx.d is under init.d. So in when working dir is in rc.d, service is in ../ |
| 65 | RCX_REL_INITD="../" |
| 66 | query_allpkgs_cmd="rpm -qa" |
| 67 | query_pkglist_cmd="rpm -ql" |
| 68 | query_pkglist_exist_cmd="rpm -q" |
| 69 | else |
| 70 | # RH-like |
| 71 | SYSCONF_PATH="/etc/sysconfig/" |
| 72 | # From Fedora 11, the dhcpd config dir is in /etc/dhcp |
| 73 | if [ -d "/etc/dhcp" ]; then |
| 74 | DHCPDCONF_DIR="/etc/dhcp" |
| 75 | else |
| 76 | DHCPDCONF_DIR="/etc" |
| 77 | fi |
| 78 | # DHCPDLEASE_DIR is got from get_dhcpdlease_dir() in drbl-functions |
| 79 | DHCP_SRV_NAME="dhcpd" |
| 80 | # From Mandriva 2008.0, the nfs server name is changed to nfs-server. |
| 81 | nfs_srv_name_chklist="nfs nfs-server" |
| 82 | NFS_SRV_NAME="" |
| 83 | for i in $nfs_srv_name_chklist; do |
| 84 | if [ -e /etc/init.d/$i -o -e "/lib/systemd/system/$i.service" ]; then |
| 85 | NFS_SRV_NAME="$i" |
| 86 | break |
| 87 | fi |
| 88 | done |
| 89 | YP_SRV_NAME="ypserv" |
| 90 | # Now GDM_CFG, FAC_GDM_CFG and KDM_CFG are got in drbl-functions. |
| 91 | #GDM_CFG="/etc/X11/gdm/gdm.conf" |
| 92 | #FAC_GDM_CFG="/etc/X11/gdm/factory-gdm.conf" |
| 93 | #KDM_CFG="/etc/kde/kdm/kdmrc" |
| 94 | RCX_ROOTDIR="/etc" |
| 95 | # The releative path between init.d and rcx.d, for RH-like, it's same, so |
| 96 | # in when working dir is in rc.d, service is in ../init.d/ |
| 97 | RCX_REL_INITD="../init.d" |
| 98 | query_allpkgs_cmd="rpm -qa" |
| 99 | query_pkglist_cmd="rpm -ql" |
| 100 | query_pkglist_exist_cmd="rpm -q" |
| 101 | fi |
| 102 | |
| 103 | drbl_syscfg="/etc/drbl" |
| 104 | cache_dir="/var/cache/apt/archives" |
| 105 | drbl_pkgdir="/usr/share/drbl/share" |
| 106 | pxecfg_pd="/tftpboot/nbi_img" |
| 107 | |
| 108 | # syslinux_binsrc_url is for downloading syslinux and pxelinux if necessary. You can change to any mirror site. E.g. "http://www.kernel.org/pub/linux/utils/boot/syslinux/" |
| 109 | syslinux_binsrc_url="http://free.nchc.org.tw/syslinux" |
| 110 | SYS_PXELINUX_VER_DEF="6.03" |
| 111 | pxelinux_binsrc_dir="$DRBL_SCRIPT_PATH/pkg/syslinux/" |
| 112 | pxelinux_file="$pxelinux_binsrc_dir/bios/pxelinux.0" |
| 113 | gpxelinux_file="$pxelinux_binsrc_dir/bios/gpxelinux.0" |
| 114 | lpxelinux_file="$pxelinux_binsrc_dir/bios/lpxelinux.0" |
| 115 | pxelinux_memdisk_file="$pxelinux_binsrc_dir/bios/memdisk" |
| 116 | pxelinux_simple_menu="$pxelinux_binsrc_dir/bios/menu.c32" |
| 117 | pxelinux_simple_vesamenu="$pxelinux_binsrc_dir/bios/vesamenu.c32" |
| 118 | pxelinux_chain_file="$pxelinux_binsrc_dir/bios/chain.c32" |
| 119 | pxelinux_mboot_file="$pxelinux_binsrc_dir/bios/mboot.c32" |
| 120 | pxelinux_sanboot_file="$pxelinux_binsrc_dir/bios/sanboot.c32" |
| 121 | # For Syslinux 5, new .c32 are required: ldlinux.c32, libcom32.c32, libutil.c32 |
| 122 | # Do not list ldlinux.e32 and ldlinux.e64 here. This is only about bios, not EFI. |
| 123 | sys_pxelinux_v5p_required_c32="ldlinux.c32 libcom32.c32 libutil.c32" |
| 124 | # EFI boot loader option, could be either "syslinux" or "grub" |
| 125 | # //NOTE// For syslinux 6.03, EFI boot loader for iso file is not ready yet. This option is only for testing now. |
| 126 | live_efi_boot_loader="grub" |
| 127 | # Note, we can not use - or other charactor, since isolinux won't accept that (drbl-pxe.png is not accepted by syslinux, however, it's ok for pxelinux). To fit both, we use drblwp.png. |
| 128 | pxelinux_bg_img="$DRBL_SCRIPT_PATH/image/drblwp.png" |
| 129 | PXELINUX_DIR="/tftpboot/nbi_img/pxelinux.cfg" |
| 130 | PXE_CONF_DEF="$PXELINUX_DIR/default" |
| 131 | isolinux_file="$pxelinux_binsrc_dir/bios/isolinux.bin" |
| 132 | # Grub EFI network boot |
| 133 | grub_bg_img="$DRBL_SCRIPT_PATH/image/drblwp.png" |
| 134 | GRUB_EFINB_DIR="/tftpboot/nbi_img/grub" |
| 135 | GRUB_EFINB_CONF_DEF="$GRUB_EFINB_DIR/grub.cfg" |
| 136 | # Common grub2 file modules for DRBL and Clonezilla. Used in drbl-gen-grub-efi-nb and ocs-gen-grub2-efi-bldr |
| 137 | GRUB_FS_MOD_drbl_ocs="ext2 xfs reiserfs jfs hfsplus fat ntfs" |
| 138 | # Note, we can not use - or other charactor, since isolinux won't accept that (ocs-logo.png is not accepted by syslinux, however, it's ok for pxelinux). To fit both, we use ocswp.png. |
| 139 | ocs_logo_img_png="$DRBL_SCRIPT_PATH/image/ocswp.png" |
| 140 | ocs_logo_img_xpm="$DRBL_SCRIPT_PATH/image/ocswp.xpm.gz" |
| 141 | ocs_logo_grub2_img_png="$DRBL_SCRIPT_PATH/image/ocswp-grub2.png" |
| 142 | MEMTEST86_URL="http://www.memtest.org/download/" |
| 143 | MEMTEST86_VER_DEF="6.00" |
| 144 | memtest86_dir="$DRBL_SCRIPT_PATH/pkg/memtest86+/" |
| 145 | # memtest86_file="$DRBL_SCRIPT_PATH/pkg/memtest86+/memtest86.bin" |
| 146 | fdos_img_src="/usr/lib/freedos/fdos1440.img" |
| 147 | fdos_img_output="fdos1440_drbl.img" |
| 148 | PXE_RAMDISK_SIZE_DEF="19456" |
| 149 | PXE_RAMDISK_BLOCKSIZE="1024" |
| 150 | NETINSTALL_RAMDISK_SIZE_DEF="65535" |
| 151 | # The default-lease-time and max-lease-time in dhcpd.conf (secs) |
| 152 | DHCPD_DEFAULT_LEASE_TIME="300" |
| 153 | DHCPD_MAX_LEASE_TIME="300" |
| 154 | |
| 155 | # The default image might show in menu if user want to show them. |
| 156 | # note! use lowercase for the image name!!! |
| 157 | IMG_SHOW_IN_MENU="drbl local memtest drbl-terminal" |
| 158 | # pxelinux menu |
| 159 | powerful_client_menu_label="Linux (DRBL mode, mostly local resources)" |
| 160 | thin_client_menu_label="Linux (Terminal mode, mostly remote resources)" |
| 161 | clonezilla_client_menu_label_prefix="Clonezilla" |
| 162 | # local OS label in pxelinux menu |
| 163 | # Some might want to change it as: Debian Linux, or MS windows... |
| 164 | local_os_menu_label="Local operating system (if available)" |
| 165 | |
| 166 | # |
| 167 | url_prefix="http://free.nchc.org.tw" |
| 168 | |
| 169 | # graphical boot settings, now only for Fedora Core (i.e. we will put "rhgb" in pxelinux.cfg/default) |
| 170 | graphical_boot="no" |
| 171 | |
| 172 | # clonezilla image directory, the default dir is /home/partimag (YES, it's partimag instead of partimage) |
| 173 | # NOTE! Do NOT put / in the end of the dir (i.e. Ex. use /home/partimag instead of /home/partimag/) |
| 174 | ocsroot="/home/partimag" |
| 175 | # clonezilla.lock path |
| 176 | ocs_lock_dir="/var/lock/clonezilla" |
| 177 | # clonezilla log files path |
| 178 | ocs_log_dir="/var/log/clonezilla/" |
| 179 | # log file for sfdisk when restoring |
| 180 | RESTORE_SFDISK_LOG="/var/log/clonezilla-restore-sfdisk.log" |
| 181 | # Output file for busybox udhcpc when detecting DHCP server |
| 182 | udhdpc_query_result="/tmp/ocs-udhcpc-rlt.txt" |
| 183 | |
| 184 | # Administrator account ID in MS windows |
| 185 | # This is for drbl-doit to send command to cloned MS windows via ssh. Different language MS windows use different ID. Ex: |
| 186 | # English: Administrator |
| 187 | # Traditional Chinese: Administrator |
| 188 | # France: Administrateur |
| 189 | # Dutch: Administrator |
| 190 | # Default vlaue: Administrator |
| 191 | MSWIN_ADMIN_ID="Administrator" |
| 192 | |
| 193 | # default LANGUAGE |
| 194 | # [0]: English, [1]: Traditional Chinese (Big5) - Taiwan, [2] Traditional Chinese (UTF-8, Unicode) - Taiwan" |
| 195 | DEFAULT_LANGUAGE="0" |
| 196 | |
| 197 | # default pxe timeout (unit: 1/10 sec) |
| 198 | DEFAULT_PXE_TIMEOUT="70" |
| 199 | |
| 200 | # user with UID greater than $uid_begin_default is normal user, |
| 201 | # i.e. effective id |
| 202 | UID_BEGIN_DEFAULT="500" |
| 203 | |
| 204 | # Misc setting |
| 205 | TIMED_GDM_TIME_DEFAULT="30" |
| 206 | TIMED_LIGHTDM_TIME_DEFAULT="30" |
| 207 | PASSWD_LENGTH_DEFAULT="8" |
| 208 | AUTO_LOGIN_ID_PASSWD="$drbl_syscfg/auto_login_id_passwd.txt" |
| 209 | # The time (how long ago) to kill the old $AUTO_LOGIN_ID_PASSWD file, in secs. |
| 210 | TIME_2_KILL="1200" |
| 211 | |
| 212 | # The default max swap file (MB) |
| 213 | maxswapsize_default="1024" |
| 214 | # The default ramdisk size for PXE and NBI initrd (MB) |
| 215 | default_ramdisk_size="9600" |
| 216 | |
| 217 | # parameter for checking space |
| 218 | common_root_dir="/bin /etc /lib /sbin" |
| 219 | buffer_ratio_for_client_space="1.5" |
| 220 | |
| 221 | # |
| 222 | HOST_MAC_TABLE="$drbl_syscfg/HOST_MAC_TABLE" |
| 223 | IP_HOST_TABLE="$drbl_syscfg/IP_HOST_TABLE" |
| 224 | |
| 225 | # drbl-useradd need these: |
| 226 | useradd_range_exec_file="drbl-useradd-range" |
| 227 | userdel_range_exec_file="drbl-userdel-range" |
| 228 | useradd_file_exec_file="drbl-useradd-file" |
| 229 | userdel_file_exec_file="drbl-userdel-file" |
| 230 | useradd_list_exec_file="drbl-useradd-list" |
| 231 | userdel_list_exec_file="drbl-userdel-list" |
| 232 | useradd_gen="username_pw.txt" |
| 233 | |
| 234 | # XFS font server switch |
| 235 | XFS_RATIO="1.2" |
| 236 | fs_port="7100" |
| 237 | |
| 238 | # List those packages has different arch rpms (i386, i486, i586, i686) in repository except kernel. This is specially for Redhat, Fedora, CentOS. |
| 239 | # Ex: glibc-2.6-3.i386.rpm, glibc-2.6-3.i686.rpm |
| 240 | # openssl-0.9.8b-12.fc7.i386.rpm, openssl-0.9.8b-12.fc7.i686.rpm |
| 241 | # openssl-perl is specially for CentOS (4.x). |
| 242 | i686_pkg_check_list_RH_like="glibc openssl openssl-perl pm-utils libbeagle libbeagle-devel libbeagle-python beagle beagle-evolution beagle-gui" |
| 243 | |
| 244 | # DRBL server necessary services checklist, both for RH-like and Debian. |
| 245 | # list all the possible services, if it exists, will start it. |
| 246 | # RH-like: dhcpd xinetd portmap iptables ypserv ypbind yppasswdd ypxfrd nfs nfslock nis (Note! Since Fedora Core 7, portmap is replaced by rpcbind) |
| 247 | # Debian: nfs-common dhcp3-server nis nfs-kernel-server tftpd-hpa drbl-clients-nat inetd (woody). unfs3 is for DRBL Live if it's installed. |
| 248 | # From Debian Squeeze, isc-dhcp-server is used, no more dhcp3-server (as that in etch, lenny...) |
| 249 | # Note: nfs-common should be before nfs-kernel-server |
| 250 | # SuSE: nfsserver instead of nfs (nfs is client server) |
| 251 | # Mandriva 2008: nfs-server instead of nfs |
| 252 | # Add :'tftp' for Fedora 21, by Ceasar |
| 253 | drbl_server_service_chklist="dhcpd dhcp3-server isc-dhcp-server kea-dhcp4-server xinetd rpcbind iptables nis ypserv ypbind yppasswdd ypxfrd nfs nfslock rpc-statd statd nfs-common nfs-kernel-server nfs-server unfs3 tftpd-hpa inetd nfsserver SuSEfirewall2_init SuSEfirewall2_setup drbl-clients-nat tftp dnsmasq" |
| 254 | # DRBL client necessary services checklist, both for RH-like and Debian. |
| 255 | # list the possible services which are necessary for cleitns, |
| 256 | # we will test all that in RedHat/Fedora/Mandrake/Debian... |
| 257 | # Note: "nfs" is server in RH, but it's client in SuSE. So we have to add it |
| 258 | # separately for SuSE. |
| 259 | # Note: hwscan for suse will be processed later, check the session "# Take care the hardware config files, clean old, make them be detected at boot" |
| 260 | # For Ubuntu, we add: acpid, acpi-support, and usplash for clients. |
| 261 | # Note! for OpenSuSE 10.1, we add powersaved resmgr |
| 262 | # For Fedora 7, we add ConsoleKit, which is necessary for CD/USB stick automount. Sep/12/2008. |
| 263 | # For Mandriva 2008, we add consolekit, which is necessary for CD/USB stick automount. Oct/10/2008. |
| 264 | # Note! service network or network-up is not necessary since network is already done in initrd of client. |
| 265 | client_services_chklist="netfs rpcbind crond nfslock rpc-statd sshd xfs ypbind kudzu harddrake dm alsa sound keytable haldaemon messagebus nis nfs-common makedev ssh dbus-1 hal dbus kbd acpid acpi-support powersaved resmgr usplash gpm ConsoleKit consolekit cups cupsys pcscd cpuspeed abrtd binfmt-support systemd-timesyncd nscd" |
| 266 | |
| 267 | # Config file for dnsmasq when used for proxy DHCP. |
| 268 | dnsmasq_cfg="/etc/dnsmasq.conf" |
| 269 | |
| 270 | # To use existing DHCP service or not when there is only one network interface |
| 271 | use_existing_dhcp_srv="no" |
| 272 | |
| 273 | # necessary packages for DRBL environment, |
| 274 | # we separate them as RH, MDK, SUSE and Debian |
| 275 | # //NOTE// Packages lzop ntfsprogs partimage maybe are not included in distribution repository (e.g. CentOS). If so, the backup plan is to use those in drbl repository. |
| 276 | PKG_FROM_RH="dhcp tftp-server nfs-utils ypserv ypbind yp-tools iptables wget dialog initscripts rsync parted tcpdump bc dos2unix curl lftp openssh-server openssh-clients coreutils gzip bzip2 nc file ethtool net-tools syslinux zip unzip iproute binutils expect lzop ntfsprogs partimage pigz pbzip2 udpcast memtest86+ yum yum-utils ecryptfs-utils shadow-utils ncurses" |
| 277 | PKG_TO_UNINSTALL_PART1_RH="dhcp tftp-server nfs-utils ypserv ypbind yp-tools dos2unix" |
| 278 | PKG_TO_UNINSTALL_PART2_RH="" |
| 279 | |
| 280 | PKG_FROM_MDK="dhcp-server tftp-server nfs-utils ypserv ypbind yp-tools iptables wget cdialog initscripts rsync parted drakxtools pciutils autologin tcpdump bc dos2unix curl lftp openssh-server openssh-clients coreutils gzip bzip2 nc file ethtool net-tools syslinux glibc-i18ndata zip unzip iproute2 binutils expect lzop ntfsprogs partimage pigz pbzip2 udpcast ncurses" |
| 281 | PKG_TO_UNINSTALL_PART1_MDK="dhcp-server tftp-server nfs-utils ypserv ypbind yp-tools dos2unix" |
| 282 | PKG_TO_UNINSTALL_PART2_MDK="" |
| 283 | |
| 284 | # The reason we need pbbuttonsd in SuSE is we need "run-parts" |
| 285 | PKG_FROM_SUSE="dhcp-server tftp nfs-utils ypserv ypbind yp-tools iptables wget dialog rsync parted tcpdump bc dos2unix curl lftp openssh insserv coreutils gzip bzip2 netcat file ethtool netdiag syslinux glibc-i18ndata zip unzip iproute2 pbbuttonsd binutils expect lzop ntfsprogs partimage pigz pbzip2 udpcast memtest86+ ecryptfs-utils" |
| 286 | PKG_TO_UNINSTALL_SUSE="dhcp-server tftp nfs-utils ypserv ypbind yp-tools ncurses-utils" |
| 287 | |
| 288 | # PKG_FROM_DBN_MINIMAL_NEED are those required packages in Debian Live, DRBL and Clonezilla |
| 289 | # PKG_FROM_DBN_WHICH_OCS_LIVE_NEED are what we create drbl live and clonezilla live need. |
| 290 | # PKG_FROM_DBN is those required packages when drbl server is setup ($PKG_FROM_DBN_MINIMAL_NEED is included in $PKG_FROM_DBN). |
| 291 | # Therefore PKG_FROM_DBN_MINIMAL_NEED is the common one for "Debian Live CD for ocs" and DRBL/Clonezilla |
| 292 | PKG_FROM_DBN_MINIMAL_NEED="util-linux tar gzip bzip2 lzop pigz pbzip2 procps \ |
| 293 | dialog rsync parted pciutils tcpdump bc gawk hdparm sdparm netcat-traditional file ethtool \ |
| 294 | etherwake ssh mtools \ |
| 295 | e2fsprogs psmisc locales wget disktype zip unzip patch iproute2 \ |
| 296 | traceroute iputils-ping binutils expect udpcast debconf-utils \ |
| 297 | txt2html dosfstools init ncurses-bin iptables \ |
| 298 | net-tools chntpw curl" |
| 299 | # Use dhcp*-client$ for dhcp3-client, dhcp-client, and isc-dhcp-client (yes, debian will select 'dhcp-client' for regex 'dhcp*-client', then select 'isc-dhcp-client' for regex 'dhcp*-client'. With "$" in the end means we do not want "isc-dhcp-client-dbg" |
| 300 | # We separate PKG_FROM_DBN_WHICH_OCS_LIVE_NEED as PKG_FROM_DBN_WHICH_OCS_LIVE_MUST_HAVE and PKG_FROM_DBN_WHICH_OCS_LIVE_NICE_TO_HAVE so that it's easier to be used in other scenario, like for singularity. |
| 301 | PKG_FROM_DBN_WHICH_OCS_LIVE_MUST_HAVE="$PKG_FROM_DBN_MINIMAL_NEED perl \ |
| 302 | less ntfs-3g screen tmux whiptail sshfs cifs-utils lftp \ |
| 303 | dhcp*-client$ fbset gddrescue lvm2 xfsprogs xfsdump jfsutils \ |
| 304 | console-setup console-common kbd hfsutils pwgen \ |
| 305 | testdisk tofrodos dvd+rw-tools udftools pcmciautils nfs-common man \ |
| 306 | pppoe pppoeconf ethtool mc wodim lshw efibootmgr \ |
| 307 | lsscsi open-iscsi aoetools mdadm gpm ifupdown usbutils \ |
| 308 | dmidecode mbr wipe hexedit vim lbzip2 lzma xz-utils \ |
| 309 | pixz lzip plzip lrzip bsdmainutils iw w3m smartmontools \ |
| 310 | dbus dmsetup kpartx wpasupplicant fsarchiver cdrdao \ |
| 311 | bind9-host nano rsyslog fbcat foremost eject gzrt sudo busybox \ |
| 312 | user-setup xorriso btrfs-progs gdisk pcscd \ |
| 313 | dirvish rsnapshot pv dnsutils tree \ |
| 314 | exfatprogs tcplay libdata-validate-ip-perl udisks2 \ |
| 315 | keyutils f2fs-tools lziprecover nwipe lsof htop bcache-tools \ |
| 316 | diskscan fstransform rfkill f2fs-tools \ |
| 317 | ntpsec-ntpdate bindfs zbackup ifenslave ca-certificates s3fs tinc \ |
| 318 | zerofree strace fatresize nilfs-tools fancontrol lm-sensors dos2unix \ |
| 319 | powertop qemu-utils os-prober dislocker ext4magic myrescue p7zip-full \ |
| 320 | sysstat iftop nmap sshpass keychain \ |
| 321 | lighttpd dnsmasq alsa-utils casync hashrat \ |
| 322 | syslinux-common syslinux-efi isolinux pxelinux \ |
| 323 | lz4 zstd haveged network-manager ldmtool \ |
| 324 | nuttcp rdfind hwinfo scdaemon xen-tools uuid-runtime jq jc \ |
| 325 | mutt telnet music123 sound-icons scrub nvme-cli \ |
| 326 | bluetooth bluez bluez-tools mtr-tiny dcfldd iotop pax pmount \ |
| 327 | util-linux-extra libfsapfs-utils usb-modeswitch archivemount \ |
| 328 | linux-cpupower krb5-user libsasl2-modules-gssapi-mit ldap-utils \ |
| 329 | dhcpcd-base upower fbterm fontconfig at cron mmc-utils lsb-release \ |
| 330 | mtd-utils thin-provisioning-tools ansifilter gocryptfs fido2-tools \ |
| 331 | brightnessctl brightness-udev fonts-unifont xfonts-unifont \ |
| 332 | netpbm arch-install-scripts" |
| 333 | |
| 334 | PKG_FROM_DBN_WHICH_OCS_LIVE_NICE_TO_HAVE="mpg123 partimage \ |
| 335 | ecryptfs-utils fscrypt ipmitool monitoring-plugins-basic encfs \ |
| 336 | davfs2 partclone-utils console-data bogl-bterm vlan \ |
| 337 | brltty espeakup plocate scsitools blktool safecopy gpart f3 ipv6calc \ |
| 338 | atop usbtop bashtop python3-psutil vnstat iperf3 glances virt-what \ |
| 339 | ncdu ncdt vifm ytree lfm openfortivpn openconnect wavemon dtrx \ |
| 340 | memtester edac-utils shc uml-utilities ngrep duf duff dfc ufw \ |
| 341 | dvtm dtach zfsutils-linux ntfs2btrfs acpitool pdsh powermgmt-base yq" |
| 342 | |
| 343 | PKG_FROM_DBN_WHICH_OCS_LIVE_NEED="$PKG_FROM_DBN_WHICH_OCS_LIVE_MUST_HAVE $PKG_FROM_DBN_WHICH_OCS_LIVE_NICE_TO_HAVE" |
| 344 | |
| 345 | PKG_FROM_DBN_WHICH_OCS_LIVE_NEED_X86_ONLY="syslinux acpi extlinux syslinux-utils \ |
| 346 | grub-pc grub-efi-amd64-bin mbmon vbetool" |
| 347 | PKG_FROM_DBN_WHICH_OCS_LIVE_NEED_X86_64_ONLY="$PKG_FROM_DBN_WHICH_OCS_LIVE_NEED_X86_ONLY grub-efi-amd64-signed shim-signed" |
| 348 | PKG_FROM_DBN_WHICH_OCS_LIVE_NEED_ARM64_ONLY="grub-efi-arm64-signed shim-signed" |
| 349 | PKG_FROM_DBN_WHICH_OCS_LIVE_NEED_ARMHF_ONLY="grub-efi-arm" |
| 350 | PKG_FROM_DBN_WHICH_OCS_LIVE_NEED_RISCV64_ONLY="grub-efi-riscv64" |
| 351 | PKG_FROM_DBN="$PKG_FROM_DBN_MINIMAL_NEED tftpd-hpa nfs-kernel-server nis lftp ntfs-3g" |
| 352 | PKG_TO_UNINSTALL_PART1_DBN="$DHCP_SRV_NAME tftpd-hpa nfs-kernel-server nis" |
| 353 | PKG_TO_UNINSTALL_PART2_DBN="" |
| 354 | |
| 355 | # Some package we are not sure it exists in repository or not, so query before |
| 356 | # install it, otherwise such as apt, one package does not exist, all the |
| 357 | # installation will be aborted. |
| 358 | # This is only for DRBL and DRBL live, nothing to do with Clonezilla live. |
| 359 | # PKG_TO_QUERY is for common, and PKG_TO_QUERY_RH is for Redhat-like distributions |
| 360 | # Add "tftp-server", "iptables-services" for Fedora 21, by Ceasar, 2015/01/14 |
| 361 | PKG_TO_QUERY="mkinitrd lvm2 ntfs-3g xorriso genisoimage mkisofs lshw hwinfo aoetools dmidecode lzop lzma xz xz-utils pixz lzip pigz pbzip2 lbzip2 plzip lrzip pv hfsutils hfsprogs dmsetup dmraid kpartx device-mapper tofrodos dos2unix unix2dos kea-dhcp4-server dhcp3-server isc-dhcp-server gdisk btrfs-progs ufsutils disktype efibootmgr syslinux syslinux-utils tftp-server iptables-services grub-efi-amd64-bin grub-efi-arm64-bin grub-efi-ia32-bin grub2-efi-modules grub2-efi-x64-modules grub2-efi-ia32-modules monitoring-plugins-basic nmap dnsmasq memtest86+ freedos lz4 zstd nscd shim-signed grub-efi-amd64-signed grub-efi-arm64-signed ldmtool ecryptfs-utils partimage thin-provisioning-tools device-mapper-persistent-data nuttcp cryptsetup syslog-ng" |
| 362 | # |
| 363 | # By Ceasar (15/12/11, for Fedora 22, dnf install return '1' if any package failed to install , but not in yum ) |
| 364 | PKG_TO_QUERY_RH="dracut firstboot" |
| 365 | |
| 366 | # package from DRBL |
| 367 | # PKG_FROM_DRBL_FOR_CLONEZILLA_LIVE is the packages which clonezilla live need. |
| 368 | PKG_FROM_DRBL_FOR_CLONEZILLA_LIVE="clonezilla partclone " |
| 369 | PKG_FROM_DRBL="$PKG_FROM_DRBL_FOR_CLONEZILLA_LIVE mkpxeinitrd-net ipxe " |
| 370 | |
| 371 | # i686 package list for SUSE |
| 372 | # TODO: make use list_available_rpm to get the lists. |
| 373 | i686_pkg_check_list_SUSE="glibc glibc-devel db db-devel db41 db41-devel" |
| 374 | |
| 375 | # Packages for gparted, this is for Debian. |
| 376 | # vim-common is for /usr/bin/xdd, which is required for NTFS moves and copies. |
| 377 | debian_pkgs_for_gparted="gparted e2fsprogs hfsutils jfsutils xfsprogs xfsdump btrfs-progs parted ntfs-3g dosfstools mtools lvm2 mbr vim-common dmsetup kpartx exfatprogs util-linux-extra" |
| 378 | |
| 379 | # Excluding some dir when rsync server's /etc to client's /etc |
| 380 | # /etc/selinux/targeted is for selinux, which is already disabled in client. |
| 381 | # //NOTE// Always remember to put the / in the end of dir. |
| 382 | etc_exclude_dirs="/etc/selinux/targeted/ /etc/netplan/" |
| 383 | |
| 384 | # If /var/run is a symbolic file (on Ubuntu 11.10 or FC17, for example), we will copy it, too. Otherwise for /var/ we will only copy directories name (Files in /var/lib/ will be copied, though). Actually in this case, /var/run is linked to /run. For /var/lock, it is linked to /run/lock |
| 385 | symbolic_files_in_var_chklist="run lock" |
| 386 | |
| 387 | # The directory with its content that will NOT to be copied to common root's /lib |
| 388 | # /lib/modules not all copied to /tftpboot/node_root/, since the kernel on the server is not always the same as that on the client. We will let mknic-nbi to take care of this. |
| 389 | # 2013/06/09 /lib/live/mount is a mounting point for Debian live 3.x. We have to exclude it otherwise the files on DRBL live will be copied, too. Those files are not required for client. |
| 390 | # NOTE!!! Do not append "/" in the end of the dir name |
| 391 | lib_NOT_2_be_copied_2_common_root="modules live/mount" |
| 392 | |
| 393 | # |
| 394 | # The directory with its content that will NOT to be copied to common root's /var/lib |
| 395 | # This is for rsyncing /var/lib/ to /tftpboot/node_root/var/lib/ |
| 396 | # The reason that varlib_NOT_2_be_copied_2_common_root and varlib_NOT_2_be_copied_2_each_client can not share the same is that for some dir, e.g. /var/lib/{rpm,dpkg}, client will mount from /tftpboot/node_root/, so we do not have to waste the space to copy to each client's /var/lib/. |
| 397 | # NOTE!!! Do not append "/" in the end of the dir name |
| 398 | varlib_NOT_2_be_copied_2_common_root="tftpboot mysql vmware-server boinc-client/projects hadoop backuppc ntp/proc docker lxcfs" |
| 399 | |
| 400 | # |
| 401 | # The directory with its content that will be copied to common root's /var/cache |
| 402 | # This is for rsyncing /var/cache/ to /tftpboot/node_root/var/cache/ |
| 403 | # NOTE!!! Do not append "/" in the end of the dir name |
| 404 | varcache_2_be_copied_2_common_root="debconf sax man" |
| 405 | |
| 406 | # |
| 407 | # The directory with its content that will NOT to be copied to client's /var/lib |
| 408 | # This is for rsyncing /tftpboot/node_root to /tftpboot/nodes/$IP |
| 409 | # Ugly here.... |
| 410 | # lib to be copied due to those necessary files for some packages, |
| 411 | # especially rpm database and alternatives |
| 412 | # Do NOT copy others if you are not sure, such as /var/lib/nfs will cause |
| 413 | # nfslock refuse to start... |
| 414 | # NOTE!!! Do not append "/" in the end of the dir name |
| 415 | # sax is for SuSE's DRBL firstboot. |
| 416 | varlib_NOT_2_be_copied_2_each_client="dhcp nfs rpm dpkg apt synaptic yum urpmi snapd" |
| 417 | # For SuSE, we need to copy /var/X11R6 to clients also. How about /var/adm ? |
| 418 | |
| 419 | # set the DIA as dialog, whiptail or xdialog |
| 420 | if type whiptail >/dev/null 2>&1; then |
| 421 | DIA="whiptail" |
| 422 | else |
| 423 | DIA="dialog" |
| 424 | fi |
| 425 | |
| 426 | # Prompt messages preference. Could be "tui" or "cmd" (default) |
| 427 | # //NOTE// This parameter has been moved to drbl-ocs.conf and renamed as "ocs_prompt_mode" |
| 428 | # //NOTE// Not all the messages are supported to be shown in dialog/whiptail |
| 429 | #messages_shown_preference="cmd" |
| 430 | |
| 431 | # NFS |
| 432 | # default ratio for nfsd and total client number, i.e. the nfs daemon number |
| 433 | # (RPCNFSDCOUNT) running in server = $NFSD_RATIO * total_client_no. |
| 434 | NFSD_RATIO=2.5 |
| 435 | # The upper limit for NFS daemons |
| 436 | NFSD_MAX=120 |
| 437 | # Extra options for NFS client in /etc/fstab |
| 438 | nfs_client_extra_opt="" |
| 439 | |
| 440 | # Yum repository blacklist, Ex. http://ftp.isu.edu.tw, it uses page by page output, it it NOT compatable with DRBL scripts. |
| 441 | yum_repo_blacklists="http://ftp.isu.edu.tw" |
| 442 | |
| 443 | # DRBL yum repo list |
| 444 | drbl_yum_repo_list="drbl.repo drbl-testing.repo drbl-unstable.repo drbl-extra.repo drbl-legacy.repo" |
| 445 | |
| 446 | # RPM MD repository config file (drbl.repo, drbl-testing.repo, drbl-unstable.repo). This is for OpenSuSE 11.1 or later. |
| 447 | rpm_md_conf_dir_path="$drbl_setup_path/rpm-md-repos" |
| 448 | |
| 449 | # Set DRBL gdm greeting background for DRBL clients ? |
| 450 | set_drbl_gdmgreeter="yes" |
| 451 | |
| 452 | # PRE_RUN_DIR and POST_RUN_DIR |
| 453 | # The script in the direcoty $DRBLPUSH_PRERUN_DIR will be run before drblpush is run, and script in the direcoty $DRBLPUSH_POSTRUN_DIR will be run after it is finished. You need to put your own scripts in those directories if you want to use this. |
| 454 | DRBLPUSH_PRERUN_DIR="$DRBL_SCRIPT_PATH/prerun/drbl/" |
| 455 | DRBLPUSH_POSTRUN_DIR="$DRBL_SCRIPT_PATH/postrun/drbl/" |
| 456 | |
| 457 | |
| 458 | ## drbl client common root dir## |
| 459 | # WARNING! DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
| 460 | # diskless_root_dir_1 are those necessary dir for mount point. |
| 461 | # WARNING! DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
| 462 | diskless_root_dir_1="home mnt proc tmp usr opt root dev var initrd sys snap" |
| 463 | # diskless_root_dir_2 are those necessary dir for mount point (from drbl.conf), too. These dirs depend on distribution, so we will test it before create it. |
| 464 | # Add misc net srv on 6/14/2005 for FC4 |
| 465 | # WARNING! DO NOT MODIFY THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! |
| 466 | diskless_root_dir_2="media misc net srv selinux" |
| 467 | |
| 468 | # If the dir (tmpfs) exists on server's /etc/fstab, append it to client's /etc/fstab: |
| 469 | memfs_dir_in_rh_client_fstab="/dev/shm /dev/pts /sys /proc" |
| 470 | |
| 471 | # dummy ethernet card port config in client (for RH-like only) |
| 472 | # The dummy files are automatically created by DRBL to avoid to be regenerated. |
| 473 | # They will be saved to $drblroot/$ip/etc/sysconfig/network-scripts/ifcfg-$ethx |
| 474 | # Normally 4 NICs will be enough, if you have more NICs in DRBL client, append them. |
| 475 | dummy_eth_nics="eth0 eth1 eth2 eth3" |
| 476 | |
| 477 | # Exclude some network devices which we do not want to be used to connect to DRBL clients, e.g. vmnet8, ppp0... |
| 478 | exclude_eth_nics="" |
| 479 | |
| 480 | # diskless_root_dir_ro_user_add and diskless_root_dir_rw_user_add are user assigned directores so that client can see those directories (NFS mounted). |
| 481 | # diskless_root_dir_ro_user_add is ReadOnly dir for client |
| 482 | # diskless_root_dir_ro_user_add is ReadWrite dir for client |
| 483 | # Ex: "/data /work", then |
| 484 | # 1. /tftpboot/node_root/data and /tftpboot/node_root/work will be created (done in drblpush) |
| 485 | # 2. /data and /work will be exported (/etc/exports) (done in drbl-nfs-exports) |
| 486 | # 3. client will NFS mount /data (from server) as /data and /work (from server) as /work (/etc/fstab) (done in drbl-gen-client-files) |
| 487 | # ///Note/// |
| 488 | # (1) You must use the absolute path, for example, in the above example, "/" is necessary for /data. |
| 489 | # (2) Do not use the dir under /media as mount point to share. /media in client is based on tmpfs, it's created everytime when it boots. |
| 490 | diskless_root_dir_ro_user_add="" |
| 491 | diskless_root_dir_rw_user_add="" |
| 492 | |
| 493 | # Debian/Ubuntu user group to be added for the users created by drbl-useradd |
| 494 | desktop_user_group_debian="dialout audio cdrom plugdev floppy video" |
| 495 | |
| 496 | # List the tags about client kernels which will be excluded. |
| 497 | # //NOTE// This is regular expression syntax. |
| 498 | drbl_client_debian_exclude_kernels="(-xen|-vserver|-openvz|rt|-dbg|-grsec|-unsigned|-cloud)" |
| 499 | |
| 500 | # uEFI network secure boot for clients. This is still in testing. |
| 501 | secure_boot_client="no" |
| 502 | |
| 503 | ##################################### |
| 504 | # GNU/Linux netinstall image settings: |
| 505 | ##################################### |
| 506 | # This is used in drbl-netinstall |
| 507 | # Be default, we turn off BSD netinstall. If you want to use BSD netintsall, set this as "yes" |
| 508 | setup_bsd_netinst="no" |
| 509 | |
| 510 | # Debian netinstall |
| 511 | debian_netinstall_ver="trixie" |
| 512 | debian_netinstall_arch="amd64" |
| 513 | debian_url_site="http://free.nchc.org.tw" |
| 514 | # Path to Debian where directory $ver (Ex. etch) exists |
| 515 | path_to_debian="debian/dists" |
| 516 | debian_netinstall_kernel="linux" |
| 517 | debian_netinstall_initrd="initrd.gz" |
| 518 | |
| 519 | # Ubuntu netinstall |
| 520 | ubuntu_netinstall_ver="resolute noble" |
| 521 | ubuntu_netinstall_arch="amd64" |
| 522 | ubuntu_url_site="http://free.nchc.org.tw" |
| 523 | # Path to Ubuntu where directory $ver (Ex. dapper) exists |
| 524 | path_to_ubuntu="ubuntu/dists" |
| 525 | ubuntu_netinstall_kernel="linux" |
| 526 | ubuntu_netinstall_initrd="initrd.gz" |
| 527 | |
| 528 | # Fedora netinstall |
| 529 | fedora_netinstall_ver="43" |
| 530 | fedora_netinstall_arch="x86_64" |
| 531 | fedora_url_site="http://free.nchc.org.tw" |
| 532 | # Path to Fedora where directory core or releases exists |
| 533 | path_to_fedora="fedora/linux" |
| 534 | fedora_netinstall_kernel="vmlinuz" |
| 535 | fedora_netinstall_initrd="initrd.img" |
| 536 | |
| 537 | # Rocky netinstall |
| 538 | rocky_netinstall_ver="9 10" |
| 539 | rocky_netinstall_arch="x86_64" |
| 540 | rocky_url_site="http://free.nchc.org.tw" |
| 541 | # Path to Rocky where directory $ver (Ex. 8) exists |
| 542 | path_to_rocky="rocky" |
| 543 | rocky_netinstall_kernel="vmlinuz" |
| 544 | rocky_netinstall_initrd="initrd.img" |
| 545 | |
| 546 | # RedHat netinstall |
| 547 | #redhat_netinstall_ver="8.0 9" |
| 548 | #redhat_netinstall_arch="i386" |
| 549 | #redhat_url_site="http://free.nchc.org.tw" |
| 550 | # Path to RedHat where directory $ver (Ex. 9) exists |
| 551 | #path_to_redhat="redhat/linux" |
| 552 | #redhat_netinstall_kernel="vmlinuz" |
| 553 | #redhat_netinstall_initrd="initrd.img" |
| 554 | |
| 555 | # Mageia netinstall |
| 556 | mageia_netinstall_ver="cauldron" |
| 557 | mageia_netinstall_arch="i586" |
| 558 | mageia_url_site="http://free.nchc.org.tw" |
| 559 | # Path to Mageia where directory $ver (Ex. cauldron) exists |
| 560 | path_to_mageia="mageia/distrib" |
| 561 | mageia_netinstall_kernel="vmlinuz" |
| 562 | mageia_netinstall_initrd="all.rdz" |
| 563 | |
| 564 | # OpenSuSE netinstall |
| 565 | # Note! Works only from 10.1 |
| 566 | opensuse_netinstall_ver="16.0" |
| 567 | opensuse_netinstall_arch="x86_64" |
| 568 | opensuse_url_site="http://free.nchc.org.tw" |
| 569 | # Path to OpenSUSE where directory $ver (Ex. 10.2) exists |
| 570 | path_to_opensuse="opensuse/distribution" |
| 571 | opensuse_netinstall_kernel="linux" |
| 572 | opensuse_netinstall_initrd="initrd" |
| 573 | |
| 574 | # FreeBSD netinstall |
| 575 | # Note! Works only for 1 version |
| 576 | # Ex: ftp://ftp.twaren.net/BSD/FreeBSD/releases/i386/ISO-IMAGES/8.0/8.0-RELEASE-i386-bootonly.iso |
| 577 | freebsd_netinstall_ver="8.0" |
| 578 | freebsd_netinstall_arch="i386" |
| 579 | freebsd_url_site="ftp://ftp.twaren.net" |
| 580 | # Path to FreeBSD where releases exists |
| 581 | path_to_freebsd="BSD/FreeBSD/" |
| 582 | |
| 583 | # OpenBSD netinstall |
| 584 | # Note! Works only for 1 version |
| 585 | # Ex: ftp://ftp.twaren.net/BSD/OpenBSD/4.6/i386/ |
| 586 | openbsd_netinstall_ver="4.6" |
| 587 | openbsd_netinstall_arch="i386" |
| 588 | openbsd_url_site="ftp://ftp.twaren.net" |
| 589 | # Path to OpenBSD where version (e.g. 4.6) exists |
| 590 | path_to_openbsd="BSD/OpenBSD/" |
| 591 | |
| 592 | # For DRBL live |
| 593 | # try IP from 192.168."100".254 for alias IP address subnet |
| 594 | drbl_live_private_IP_alias_eth_def="100" |
| 595 | |
| 596 | # For SAN booting (AoE/iSCSI booting) |
| 597 | # Only 1 dir is allowed here, since we will use it as the target dir to dump AoE file by drbl-aoe-img-dump. Later you can use drbl-aoe-srv to assign different image dirs, including multiple dirs |
| 598 | sanboot_img_dump_dir="/home/sanboot-img" |
| 599 | aoe_shelf_max="15" |
| 600 | aoe_slot_max="15" |