mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
🏦 Start as embassy hostname from the begining (#1814)
* 🏦 start as embassy hostname from the begining
By this, we are limiting the number of hostname changes (from 3 to 2) during the first initial Embassy startup.
* Hostname change no longer needed
This commit is contained in:
@@ -97,7 +97,6 @@ touch /root/.docker/config.json
|
|||||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
docker network create -d bridge --subnet 172.18.0.1/16 start9 || true
|
docker network create -d bridge --subnet 172.18.0.1/16 start9 || true
|
||||||
mkdir -p /etc/embassy
|
mkdir -p /etc/embassy
|
||||||
hostnamectl set-hostname "embassy"
|
|
||||||
systemctl enable embassyd.service embassy-init.service
|
systemctl enable embassyd.service embassy-init.service
|
||||||
cat << EOF > /etc/tor/torrc
|
cat << EOF > /etc/tor/torrc
|
||||||
SocksPort 0.0.0.0:9050
|
SocksPort 0.0.0.0:9050
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ sudo cp ENVIRONMENT.txt /tmp/eos-mnt/etc/embassy
|
|||||||
sudo cp GIT_HASH.txt /tmp/eos-mnt/etc/embassy
|
sudo cp GIT_HASH.txt /tmp/eos-mnt/etc/embassy
|
||||||
sudo cp build/fstab /tmp/eos-mnt/etc/fstab
|
sudo cp build/fstab /tmp/eos-mnt/etc/fstab
|
||||||
sudo cp build/journald.conf /tmp/eos-mnt/etc/systemd/journald.conf
|
sudo cp build/journald.conf /tmp/eos-mnt/etc/systemd/journald.conf
|
||||||
|
sudo sed -i 's/raspberrypi/embassy/g' /tmp/eos-mnt/etc/hostname
|
||||||
|
sudo sed -i 's/raspberrypi/embassy/g' /tmp/eos-mnt/etc/hosts
|
||||||
|
|
||||||
# copy over cargo dependencies
|
# copy over cargo dependencies
|
||||||
sudo cp cargo-deps/aarch64-unknown-linux-gnu/release/nc-broadcast /tmp/eos-mnt/usr/local/bin
|
sudo cp cargo-deps/aarch64-unknown-linux-gnu/release/nc-broadcast /tmp/eos-mnt/usr/local/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user