mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
fix: network improvements
Move to networkd since OMV uses it, also means first boot is a bit faster. Also improve readme.
This commit is contained in:
parent
b37bdd27d4
commit
459d0a4758
5 changed files with 16 additions and 47 deletions
|
@ -24,7 +24,8 @@ apt-get -o Dpkg::Options::="--force-confold" -y --allow-downgrades \
|
|||
--allow-remove-essential --allow-change-held-packages install cloud-init \
|
||||
bsdextrautils git binutils ca-certificates e2fsprogs haveged parted curl \
|
||||
locales console-common openssh-server less vim net-tools wireguard-tools \
|
||||
ntpsec u-boot-tools wget u-boot-menu initramfs-tools python3-flask gnupg
|
||||
ntpsec u-boot-tools wget u-boot-menu initramfs-tools python3-flask gnupg \
|
||||
libc-ares2
|
||||
|
||||
# Locale gen
|
||||
locale-gen
|
||||
|
@ -49,12 +50,6 @@ apt-get --yes --auto-remove --show-upgraded \
|
|||
--option DPkg::Options::="--force-confold" \
|
||||
install openmediavault openmediavault-md || true # We "fail" all apt cmds from here on til we boot on HW
|
||||
|
||||
# Disable systemd-networkd
|
||||
systemctl disable systemd-networkd
|
||||
systemctl disable systemd-networkd-wait-online
|
||||
systemctl mask systemd-networkd
|
||||
systemctl mask systemd-networkd-wait-online
|
||||
|
||||
# Cleanup stuff we don't want floating around
|
||||
apt-get autoclean || true
|
||||
apt-get --purge -y autoremove || true
|
||||
|
|
|
@ -51,7 +51,7 @@ for file in libgrpc++.so.1 libgrpc.so.10 libprotobuf.so.23 \
|
|||
libssl.so.1.1 libcrypto.so.1.1 libabsl*.so.20200923 libatomic.so.1; do
|
||||
cp -H ${build_path}/fw-extract/rootfs/usr/lib/aarch64-linux-gnu/${file} "${build_path}/rootfs/usr/lib/ubnt-fw/"
|
||||
done
|
||||
sed -i 's|Type=simple|Type=simple\nEnvironment="LD_LIBRARY_PATH=/usr/lib/ubnt-fw"|g' "${build_path}/rootfs/lib/systemd/system/ulcmd.service" # Add library path
|
||||
sed -i 's|Type=simple|Type=simple\nEnvironment="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/ubnt-fw"|g' "${build_path}/rootfs/lib/systemd/system/ulcmd.service" # Add library path
|
||||
|
||||
# Kick off bash setup script within chroot
|
||||
cp ${docker_scripts_path}/bootstrap/001-bootstrap ${build_path}/rootfs/bootstrap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue