Remove networking packages and configuration (ssh, wpa, dhcp, cifs, net-tools, etc.)
This commit is contained in:
parent
d6207a620a
commit
0e722a9e71
|
@ -1,4 +1,4 @@
|
||||||
ssh less fbset sudo psmisc strace ed ncdu crda
|
less fbset sudo psmisc strace ed ncdu crda vim
|
||||||
console-setup keyboard-configuration debconf-utils parted unzip
|
console-setup keyboard-configuration debconf-utils parted unzip
|
||||||
build-essential manpages-dev python bash-completion gdb pkg-config
|
build-essential manpages-dev python bash-completion gdb pkg-config
|
||||||
python-rpi.gpio v4l-utils
|
python-rpi.gpio v4l-utils
|
||||||
|
@ -6,26 +6,20 @@ avahi-daemon
|
||||||
lua5.1
|
lua5.1
|
||||||
luajit
|
luajit
|
||||||
hardlink ca-certificates curl
|
hardlink ca-certificates curl
|
||||||
fake-hwclock nfs-common usbutils
|
fake-hwclock usbutils
|
||||||
libraspberrypi-dev libraspberrypi-doc libfreetype6-dev
|
libraspberrypi-dev libraspberrypi-doc libfreetype6-dev
|
||||||
dosfstools
|
dosfstools
|
||||||
dphys-swapfile
|
dphys-swapfile
|
||||||
raspberrypi-sys-mods
|
raspberrypi-sys-mods
|
||||||
pi-bluetooth
|
|
||||||
apt-listchanges
|
apt-listchanges
|
||||||
usb-modeswitch
|
usb-modeswitch
|
||||||
libpam-chksshpwd
|
libpam-chksshpwd
|
||||||
rpi-update
|
rpi-update
|
||||||
libmtp-runtime
|
libmtp-runtime
|
||||||
rsync
|
|
||||||
htop
|
|
||||||
man-db
|
man-db
|
||||||
policykit-1
|
policykit-1
|
||||||
ssh-import-id
|
|
||||||
rng-tools
|
rng-tools
|
||||||
ethtool
|
|
||||||
vl805fw
|
vl805fw
|
||||||
ntfs-3g
|
|
||||||
pciutils
|
pciutils
|
||||||
rpi-eeprom
|
rpi-eeprom
|
||||||
raspinfo
|
raspinfo
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
cifs-utils
|
|
8
stage2/01-sys-tweaks/01-run.sh
Executable file → Normal file
8
stage2/01-sys-tweaks/01-run.sh
Executable file → Normal file
|
@ -13,14 +13,7 @@ install -m 755 files/rc.local "${ROOTFS_DIR}/etc/"
|
||||||
|
|
||||||
on_chroot << EOF
|
on_chroot << EOF
|
||||||
systemctl disable hwclock.sh
|
systemctl disable hwclock.sh
|
||||||
systemctl disable nfs-common
|
|
||||||
systemctl disable rpcbind
|
systemctl disable rpcbind
|
||||||
if [ "${ENABLE_SSH}" == "1" ]; then
|
|
||||||
systemctl enable ssh
|
|
||||||
else
|
|
||||||
systemctl disable ssh
|
|
||||||
fi
|
|
||||||
systemctl enable regenerate_ssh_host_keys
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ "${USE_QEMU}" = "1" ]; then
|
if [ "${USE_QEMU}" = "1" ]; then
|
||||||
|
@ -53,4 +46,3 @@ on_chroot << EOF
|
||||||
usermod --pass='*' root
|
usermod --pass='*' root
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
rm -f "${ROOTFS_DIR}/etc/ssh/"ssh_host_*_key*
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
|
|
||||||
raspberrypi-net-mods
|
|
||||||
dhcpcd5
|
|
||||||
net-tools
|
|
|
@ -1,31 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
install -v -d "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d"
|
|
||||||
install -v -m 644 files/wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/"
|
|
||||||
|
|
||||||
install -v -d "${ROOTFS_DIR}/etc/wpa_supplicant"
|
|
||||||
install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
|
|
||||||
|
|
||||||
if [ -v WPA_COUNTRY ]; then
|
|
||||||
echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -v WPA_ESSID ] && [ -v WPA_PASSWORD ]; then
|
|
||||||
on_chroot <<EOF
|
|
||||||
set -o pipefail
|
|
||||||
wpa_passphrase "${WPA_ESSID}" "${WPA_PASSWORD}" | tee -a "/etc/wpa_supplicant/wpa_supplicant.conf"
|
|
||||||
EOF
|
|
||||||
elif [ -v WPA_ESSID ]; then
|
|
||||||
cat >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" << EOL
|
|
||||||
|
|
||||||
network={
|
|
||||||
ssid="${WPA_ESSID}"
|
|
||||||
key_mgmt=NONE
|
|
||||||
}
|
|
||||||
EOL
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Disable wifi on 5GHz models
|
|
||||||
mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/"
|
|
||||||
echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan"
|
|
||||||
echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan"
|
|
|
@ -1,3 +0,0 @@
|
||||||
[Service]
|
|
||||||
ExecStart=
|
|
||||||
ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w
|
|
|
@ -1,2 +0,0 @@
|
||||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
|
||||||
update_config=1
|
|
Loading…
Reference in New Issue
Block a user