mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Move installation of the CIFS package to run/cifs_archive/configure-archive.sh
Don't need hping3 for other systems. Keep the reconfiguration of the packages that is done specifically for making the root file system read-only in make-root-fs-readonly.sh.
This commit is contained in:
@@ -7,6 +7,15 @@ function append_cmdline_txt_param() {
|
||||
sed -i "s/\'/ ${toAppend}/g" /boot/cmdline.txt >/dev/null
|
||||
}
|
||||
|
||||
echo "Updating package index files..."
|
||||
apt-get update
|
||||
echo "Removing unwanted packages..."
|
||||
apt-get remove -y --force-yes --purge triggerhappy logrotate dphys-swapfile
|
||||
apt-get -y --force-yes autoremove --purge
|
||||
# Replace log management with busybox (use logread if needed)
|
||||
echo "Installing ntp and busybox-syslogd..."
|
||||
apt-get -y --force-yes install ntp busybox-syslogd; dpkg --purge rsyslog
|
||||
|
||||
echo "Configuring system..."
|
||||
|
||||
# Add fastboot, noswap and/or ro to end of /boot/cmdline.txt
|
||||
|
||||
@@ -191,22 +191,9 @@ function make_root_fs_readonly () {
|
||||
/tmp/make-root-fs-readonly.sh
|
||||
}
|
||||
|
||||
function install_required_packages () {
|
||||
echo "Updating package index files..."
|
||||
apt-get update
|
||||
echo "Removing unwanted packages..."
|
||||
apt-get remove -y --force-yes --purge triggerhappy logrotate dphys-swapfile
|
||||
apt-get -y --force-yes autoremove --purge
|
||||
# Replace log management with busybox (use logread if needed)
|
||||
echo "Installing ntp, and busybox-syslogd..."
|
||||
apt-get -y --force-yes install ntp busybox-syslogd hping3; dpkg --purge rsyslog
|
||||
}
|
||||
|
||||
export -f setup_progress
|
||||
export HEADLESS_SETUP
|
||||
|
||||
install_required_packages
|
||||
|
||||
headless_setup_populate_variables
|
||||
|
||||
# If USE_LED_FOR_SETUP_PROGRESS = true.
|
||||
|
||||
Reference in New Issue
Block a user