From: Frank Brehm Date: Thu, 29 Mar 2018 12:05:45 +0000 (+0200) Subject: Disabling floppy in bin/postinst X-Git-Tag: 0.1.1~68 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=64d18129e28f0d57e56a4274706ec03c0e76524a;p=pixelpark%2Fcreate-vmware-tpl.git Disabling floppy in bin/postinst --- diff --git a/bin/postinst b/bin/postinst index 9bb0108..92c2815 100644 --- a/bin/postinst +++ b/bin/postinst @@ -14,6 +14,8 @@ IP_ADDRESS_ETH0=$( host "${hostname}" | sed -e 's/.*has address[ ][ ]*//' ) DOMAIN=$( echo "${hostname}" | cut -d. -f2,3 ) SIMPLE_HOSTNAME=$( echo "${hostname}" | cut -d. -f1 ) +ROOT_PW_CRYPTED="$6$I0yXrNsT$YU3ekjNLy1KTWLRVNww8YM1xtO8FXgTEFhOANS.HB8baj7CxNMRCoxDQh5oFYkZbli67s4pwZ36aNchD2YL.G0" + echo echo "Some information:" echo " \$hostname: $hostname" @@ -605,6 +607,27 @@ install_puppet() { } +#----------------------------------------------------------- +disable_floppy() { + + echo + log "Disabling floppy kernel module ..." + + cat <<-EOF >"/etc/modprobe.d/local-blacklist.conf" + blacklist floppy + EOF + +} + +#----------------------------------------------------------- +set_root_pw() { + + echo + log "Setting root password ..." + usermod -p "${ROOT_PW_CRYPTED}" root + +} + #----------------------------------------------------------- main() { @@ -625,6 +648,8 @@ main() { install_ntp install_openvm_tools remove_uek_packages + disable_floppy + set_root_pw dist_upgrade install_puppet