mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
Setup Scripts (#472)
* Init commit of setup scripts * Minor edit * Script edit and dir rename * Oops * Updated README * Updated scripts/readme * Additional Script/README updates * Further Script updates * BuildGuide updates * More git fuckery * Init commit of setup scripts * Minor edit * Script edit and dir rename * Oops * Updated scripts/readme * Script/README updates * Additional Script/README updates * Script/README edits * Copy script edit * Copy script edit * Filesystem script edit * More edits * Guide edit * Makefile * fixes ui build scripts to use submodules (#546) * fix product key generation Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
This commit is contained in:
committed by
Aiden McClelland
parent
72872ba52a
commit
33fe3e1059
214
build/NOTES.md
Normal file
214
build/NOTES.md
Normal file
@@ -0,0 +1,214 @@
|
||||
# Creating an 0.3.0 Image
|
||||
|
||||
- Download [ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz](https://ubuntu.com/download/raspberry-pi/thank-you?version=21.04&architecture=server-arm64+raspi)
|
||||
|
||||
- `unxz ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz` to unzip
|
||||
|
||||
- `export LOOPDEV=$(sudo losetup --show -fP ubuntu-21.04-preinstalled-server-arm64+raspi.img)` to set the `.img` file as a loop device environment variable
|
||||
|
||||
- Got error: `losetup: cannot find an unused loop device`
|
||||
- ran `modprobe loop` which gave: `modprobe: FATAL: Module loop not found in directory /lib/modules/5.13.13-arch1-1`
|
||||
- Fixed with reboot (an update had occurred without recent reboot)
|
||||
|
||||
- Plug in your 16GB microSD card. We are assuming it will be at /dev/mmcblk0
|
||||
|
||||
- Find current devices with `lsblk`
|
||||
|
||||
(To use `partitioning.sh` - `export OUTPUT_DEVICE=mmcblk0` where mmcblk0 is our example, but be sure to use the correct disc name if yours differs)
|
||||
|
||||
- `sudo fdisk /dev/mmcblk0`
|
||||
|
||||
- Use entire disk, not a partition (e.g. `mmcblk0`, not `mmcblk0p1`)
|
||||
|
||||
- Run the following (options to ‘press Enter’ are assuming a 16GB card):
|
||||
|
||||
-`o`, to create a new empty DOS partition table
|
||||
-`n`, to add a new partition
|
||||
-`p` (or press Enter), to make it a primary partition
|
||||
-`1` (or press Enter), to make it the first partition
|
||||
-`2048` (or press Enter), to set the first sector
|
||||
-`526335`, to set the last sector
|
||||
-`t`, to change the partition type
|
||||
-`c`, to select `W95 FAT32 (LBA)`
|
||||
-`n`, to add a new partition
|
||||
-`p` (or press Enter), to make it a primary partition
|
||||
-`2` (or press Enter), to make it the second partition
|
||||
-`526336` (or press Enter), to set the first sector
|
||||
-`1050623`, to set the last sector
|
||||
-`t`, to change the partition type
|
||||
-`2`, to select the partition
|
||||
-`c`, to select `W95 FAT32 (LBA)`
|
||||
-`n`, to add a new partition
|
||||
-`p` (or press Enter), to make it a primary partition
|
||||
-`3` (or press Enter), to make it the third partition
|
||||
-`1050624` (or press Enter), to set the first sector
|
||||
-`16083455`, to set the last sector
|
||||
-`n`, to add a new partition
|
||||
-`p`, to make it a primary partition
|
||||
-`16083456`, to set the first sector
|
||||
- `31116287` (or press Enter), to set the last sector
|
||||
-`a`, to toggle the bootable flag
|
||||
-`1`, to select the first partition
|
||||
-`w`, to save and write the changes to the card
|
||||
|
||||
- Got errors `Failed to add partition 1 (and 2,3,4) to system: Device or resource busy
|
||||
- Had to `sudo umount /dev/mmcblk0p1` then
|
||||
- `sudo fdisk /dev/mmcblk0` then `w` to write
|
||||
- Fucking Arch
|
||||
|
||||
*******************************************
|
||||
|
||||
(Can use `filesystems.sh` here)
|
||||
|
||||
- `sudo dd if=${LOOPDEV}p1 of=/dev/mmcblk0p1` to write partition 1 of the Ubuntu image to the partition 1 of the sd card
|
||||
|
||||
- You may add ` status=progress` if you’d like progress feedback
|
||||
|
||||
- `sudo mkfs.vfat /dev/mmcblk0p2` to make the FAT filesystem on the partition 2
|
||||
|
||||
- `sudo dd if=${LOOPDEV}p2 of=/dev/mmcblk0p3` to write partition 2 of the Ubuntu image to partition 3 of the sd card
|
||||
|
||||
- `sudo mkfs.ext4 /dev/mmcblk0p4` to make the linux filesystem on partition 4
|
||||
|
||||
- `sudo losetup -d $LOOPDEV` to detach the loop device
|
||||
|
||||
- Now, we will label the filesystems:
|
||||
|
||||
- `sudo fatlabel /dev/mmcblk0p1 system-boot` Ignore warning
|
||||
|
||||
- `sudo fatlabel /dev/mmcblk0p2 EMBASSY`
|
||||
|
||||
- `sudo e2label /dev/mmcblk0p3 writable`
|
||||
|
||||
- `sudo e2label /dev/mmcblk0p4 reserved`
|
||||
|
||||
- `sudo mount /dev/mmcblk0p1 /mnt` to mount the boot partition
|
||||
|
||||
- `cat "/mnt/config.txt" | grep -v "dtoverlay=" | sudo tee "/mnt/config.txt.tmp"` This copies everything from the `config.txt` file except the dtoverlay option into the `config.txt.tmp` file
|
||||
|
||||
- `echo "dtoverlay=pwm-2chan" | sudo tee -a "/mnt/config.txt.tmp"` This writes a dtoverlay option into the `config.txt.tmp` file
|
||||
|
||||
- `sudo mv "/mnt/config.txt.tmp" "/mnt/config.txt"` Overwrites the `config.txt` file with the new input
|
||||
|
||||
- `sudo umount /mnt` to unmount the filesystem
|
||||
|
||||
- `sudo mount /dev/mmcblk0p2 /mnt` Mount the EMBASSY filesystem
|
||||
|
||||
***
|
||||
|
||||
- Store a product key as an environment variable in $PRODUCT_KEY, with `export PRODUCT_KEY=123456`, obviously, this number is made up, and then:
|
||||
|
||||
- `echo $PRODUCT_KEY | sudo tee /mnt/product_key.txt` to add it to the `product_key.txt` file.
|
||||
|
||||
- `sudo umount /mnt` to unmount again
|
||||
|
||||
- `sudo mount /dev/mmcblk0p3 /mnt` to mount the writable filesystem
|
||||
|
||||
- Build embassy-os (LINK OR UPDATE, this step ridic – PULL LATEST CODE!!!) (for now, `docker run --rm --privileged linuxkit/binfmt:v0.8`, get rust-arm-cross.img and `docker load < rust-arm-cross.img`, have latest dev branch for patch, yajrc, and master for rpc-toolkit, then from appmgr dir: `./build-prod.sh`), then, also from the appmgr dir:
|
||||
|
||||
(Can use `copy.sh` here)
|
||||
|
||||
- `sudo cp target/aarch64-unknown-linux-gnu/release/embassy-init /mnt/usr/local/bin` to copy `embassy-init` over to the new filesystem
|
||||
|
||||
- `sudo cp target/aarch64-unknown-linux-gnu/release/embassyd /mnt/usr/local/bin` to copy `embassyd` over to the new filesystem
|
||||
|
||||
- `sudo cp target/aarch64-unknown-linux-gnu/release/embassy-cli /mnt/usr/local/bin` to copy `embassy-cli` over to the new filesystem
|
||||
|
||||
- `sudo cp *.service /mnt/etc/systemd/system/` to copy over the systemd service files
|
||||
|
||||
- `echo "application/wasm wasm;" | sudo tee -a "/mnt/etc/nginx/mime.types"`
|
||||
|
||||
- `sudo mkdir -p /mnt/root/.ssh` create the `ssh` folder on the new filesystem
|
||||
|
||||
*******************************************
|
||||
|
||||
- `cat ~/.ssh/id_ed25519.pub | sudo tee -a /mnt/root/.ssh/authorized_keys` copy your ssh key over (assuming it is ~/.ssh/id_ed25519.pub)
|
||||
|
||||
- `sudo umount /mnt` unmount once again
|
||||
|
||||
Time to remove your SD card and insert it into your hardware!! See our DIY guide here (LINK REQUIRED) if you have not yet built your Embassy.
|
||||
|
||||
- SSH in (find by hacking) `ssh root@whateverIP` and run:
|
||||
|
||||
(Can use `/setup/initialization.sh` here)
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
|
||||
apt update
|
||||
apt install -y \
|
||||
docker.io \
|
||||
tor \
|
||||
nginx \
|
||||
libavahi-client3 \
|
||||
avahi-daemon \
|
||||
iotop \
|
||||
bmon \
|
||||
zfsutils-linux \
|
||||
exfat-utils \
|
||||
sqlite3
|
||||
sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
|
||||
sed -i 's/Restart=on-failure/Restart=always/g' /lib/systemd/system/tor@default.service
|
||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
docker network create -d bridge --subnet 172.18.0.1/16 start9
|
||||
echo '{ "storage-driver": "zfs" }' > /etc/docker/daemon.json
|
||||
mkdir /etc/embassy
|
||||
hostnamectl set-hostname "embassy"
|
||||
systemctl enable embassyd.service embassy-init.service
|
||||
echo 'overlayroot="tmpfs"' > /etc/overlayroot.local.conf
|
||||
cat << EOF > /etc/tor/torrc
|
||||
SocksPort 0.0.0.0:9050
|
||||
SocksPolicy accept 127.0.0.1
|
||||
SocksPolicy accept 172.18.0.0/16
|
||||
SocksPolicy reject *
|
||||
ControlPort 9051
|
||||
CookieAuthentication 1
|
||||
EOF
|
||||
```
|
||||
|
||||
*******************************************
|
||||
|
||||
- Do a `reboot`
|
||||
|
||||
- Have Aiden fix code for a while
|
||||
|
||||
Do the setup!!
|
||||
|
||||
-
|
||||
|
||||
- Then initialize ZFS (don’t actually though):
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
|
||||
zpool create embassy-data /dev/sda
|
||||
zpool get -H -ovalue guid embassy-data > /embassy-os/disk.guid
|
||||
echo password > /etc/embassy/password
|
||||
zfs create -o reservation=5G -o encryption=on -o keylocation=file:///etc/embassy/password -o keyformat=passphrase embassy-data/main
|
||||
zfs create -o reservation=5G embassy-data/updates
|
||||
zfs create -o encryption=on -o keylocation=file:///etc/embassy/password -o keyformat=passphrase embassy-data/package-data
|
||||
zfs create -o encryption=on -o keylocation=file:///etc/embassy/password -o keyformat=passphrase embassy-data/tmp
|
||||
rm /etc/embassy/password
|
||||
zpool export embassy-data
|
||||
```
|
||||
|
||||
- Enable services
|
||||
- `systemctl enable embassyd.service embassy-init.service`
|
||||
- Reboot
|
||||
- `reboot`
|
||||
- Once you have rebooted in overlay mode, DO NOT INSTALL ANYTHING
|
||||
- Then seed the db with an account:
|
||||
- `sqlite3 /embassy-data/secrets.db`
|
||||
- `insert into account (id, password, tor_key) VALUES (0, '[your_password_hash]', x'[your_tor_key]');`
|
||||
- You should hear a chime
|
||||
- Now go to your onion address and enjoy
|
||||
|
||||
|
||||
Automation:
|
||||
|
||||
1. partitioning.sh - done
|
||||
2. filesystems.sh - done
|
||||
3. copy.sh - done
|
||||
4. initialization.sh - done
|
||||
5. zfs.sh??
|
||||
6. Final steps?
|
||||
13
build/README.md
Normal file
13
build/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Building Embassy OS
|
||||
|
||||
## Prerequisites
|
||||
|
||||
TODO
|
||||
|
||||
## Build
|
||||
```
|
||||
make
|
||||
```
|
||||
|
||||
## Setup
|
||||
http://embassy.local
|
||||
46
build/README.old.md
Normal file
46
build/README.old.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# Creating an 0.3.0 Image (Scripted version)
|
||||
### This guide assumes a linux environment
|
||||
### `Text in this format are commands to run`
|
||||
|
||||
1. a) Download [ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz](https://ubuntu.com/download/raspberry-pi/thank-you?version=21.04&architecture=server-arm64+raspi)
|
||||
|
||||
1. b) `unxz ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz` to unzip
|
||||
|
||||
2. a) Run `git clone https://github.com/Start9Labs/embassy-os` to download the embassy-os repository
|
||||
|
||||
2. b) Plug in your 16GB microSD card. In this example, we are assuming it will be at /dev/mmcblk0
|
||||
|
||||
- Find the location of your device with `lsblk` or `fdisk -l`
|
||||
|
||||
3. a) Run `export OUTPUT_DEVICE=/dev/mmcblk0` where `/dev/mmcblk0` is the sd card’s device name, be sure to change if yours differs
|
||||
|
||||
3. b) Run `export LOOPDEV=$(sudo losetup --show -fP ubuntu-21.04-preinstalled-server-arm64+raspi.img)` to set the `.img` file as a loop device environment variable
|
||||
|
||||
4. Run `./build/partitioning.sh` You should see confirmation of write to disk
|
||||
|
||||
5. Run `./build/filesystems.sh` You will see write progression twice, ignore the warning about lowercase labels
|
||||
|
||||
6. a) Store a product key as an environment variable in $PRODUCT_KEY, with `export PRODUCT_KEY=test1234`, obviously, this number is made up, but must be 8 alphanumeric characters, then:
|
||||
|
||||
6. b) `echo $PRODUCT_KEY | sudo tee /mnt/product_key.txt` to add it to the `product_key.txt` file.
|
||||
|
||||
6. c) `sudo umount /mnt` to unmount again
|
||||
|
||||
6. d) `sudo mount /dev/mmcblk0p3 /mnt` to mount the writable filesystem
|
||||
|
||||
7. a) Build EmbassyOS: Move into the EmbassyOS directory with `cd embassy-os` and Build embassy-os (NEEDS UPDATE – PULL LATEST CODE!!!) (for now, `docker run --rm --privileged linuxkit/binfmt:v0.8`, get rust-arm-cross.img and `docker load < rust-arm-cross.img`, then from appmgr dir: `./build-prod.sh`)
|
||||
|
||||
7. b) Build UI: First, make sure you have `git`, `node`, and `npm` installed. Then, `cd ui` to enter ui dir, and run `npm i -g @ionic/cli` to install Ionic, `npm i` to install, then `cd ..` to return to the `embassy-os` directory
|
||||
|
||||
8. a) Run `sudo ./build/copy.sh`
|
||||
|
||||
8. b) `cat ~/.ssh/id_ed25519.pub | sudo tee -a /mnt/root/.ssh/authorized_keys` copy your ssh key over (assuming it is ~/.ssh/id_ed25519.pub)
|
||||
|
||||
8. c) `sudo umount /mnt` unmount once again
|
||||
|
||||
## Time to remove your SD card and insert it into your hardware!! See our [DIY guide](https://docs.start9.com/getting-started/diy.html) if you have not yet put built your device.
|
||||
|
||||
9. a) Get IP (find by hacking) and visit x.x.x.x:80
|
||||
9. b) `ssh root@whateverIP` and run `sudo ./build/initialization.sh` which you currently have to scp over from the `embassy-os` dir
|
||||
|
||||
10. Do the setup
|
||||
10
build/initialization.service
Normal file
10
build/initialization.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Boot process for system initialization.
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/initialization.sh
|
||||
RemainAfterExit=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
37
build/initialization.sh
Executable file
37
build/initialization.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update repositories, install dependencies, do some initial configurations, set hostname, enable embassy-init, and config Tor
|
||||
apt update
|
||||
apt install -y \
|
||||
docker.io \
|
||||
tor \
|
||||
nginx \
|
||||
libavahi-client3 \
|
||||
avahi-daemon \
|
||||
iotop \
|
||||
bmon \
|
||||
zfsutils-linux \
|
||||
exfat-utils \
|
||||
sqlite3
|
||||
sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades
|
||||
sed -i 's/Restart=on-failure/Restart=always/g' /lib/systemd/system/tor@default.service
|
||||
sed -i '/}/i \ \ \ \ application\/wasm \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ wasm;' /etc/nginx/mime.types
|
||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||
docker network create -d bridge --subnet 172.18.0.1/16 start9
|
||||
echo '{ "storage-driver": "zfs" }' > /etc/docker/daemon.json
|
||||
mkdir /etc/embassy
|
||||
hostnamectl set-hostname "embassy"
|
||||
systemctl enable embassyd.service embassy-init.service
|
||||
echo 'overlayroot="tmpfs"' > /etc/overlayroot.local.conf
|
||||
cat << EOF > /etc/tor/torrc
|
||||
SocksPort 0.0.0.0:9050
|
||||
SocksPolicy accept 127.0.0.1
|
||||
SocksPolicy accept 172.18.0.0/16
|
||||
SocksPolicy reject *
|
||||
ControlPort 9051
|
||||
CookieAuthentication 1
|
||||
EOF
|
||||
|
||||
systemctl disable initialization.service
|
||||
sync
|
||||
reboot
|
||||
19
build/make-image.sh
Executable file
19
build/make-image.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
SOURCE="${BASH_SOURCE[0]}"
|
||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
||||
SOURCE="$(readlink "$SOURCE")"
|
||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
||||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
||||
cd $DIR/..
|
||||
|
||||
truncate --size=$[(31116287+1)*512] eos.img
|
||||
export OUTPUT_DEVICE=$(sudo losetup --show -fP eos.img)
|
||||
export LOOPDEV=$(sudo losetup --show -fP ubuntu.img)
|
||||
./build/partitioning.sh
|
||||
./build/write-image.sh
|
||||
sudo losetup -d $OUTPUT_DEVICE
|
||||
6
build/partitioning.sh
Executable file
6
build/partitioning.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Use fdisk to create DOS partition table with 4 primary partitions, set 1 as bootable, write, and quite
|
||||
(echo o; echo n; echo p; echo 1; echo 2048; echo 526335; echo t; echo c; echo n; echo p; echo 2; echo 526336; echo 1050623; echo t; echo 2; echo c; echo n; echo p; echo 3; echo 1050624; echo 16083455; echo n; echo p; echo 16083456; echo 31116287; echo a; echo 1; echo w) | sudo fdisk ${OUTPUT_DEVICE}
|
||||
58
build/write-image.sh
Executable file
58
build/write-image.sh
Executable file
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Write contents of LOOPDEV (Ubuntu image) to sd card and make filesystems, then detach the loop device
|
||||
echo USING $LOOPDEV TO IMAGE $OUTPUT_DEVICE
|
||||
sudo dd if=${LOOPDEV}p1 of=${OUTPUT_DEVICE}p1 bs=4096 conv=fsync status=progress
|
||||
sudo mkfs.vfat -F 32 ${OUTPUT_DEVICE}p2
|
||||
sudo dd if=${LOOPDEV}p2 of=${OUTPUT_DEVICE}p3 bs=4096 conv=fsync status=progress
|
||||
sudo mkfs.ext4 ${OUTPUT_DEVICE}p4
|
||||
|
||||
sudo losetup -d $LOOPDEV
|
||||
|
||||
# Label the filesystems
|
||||
sudo fatlabel ${OUTPUT_DEVICE}p1 system-boot
|
||||
sudo fatlabel ${OUTPUT_DEVICE}p2 EMBASSY
|
||||
sudo e2label ${OUTPUT_DEVICE}p3 writable
|
||||
sudo e2label ${OUTPUT_DEVICE}p4 reserved
|
||||
|
||||
# Mount the boot partition and config
|
||||
mkdir -p /tmp/eos-mnt
|
||||
sudo mount ${OUTPUT_DEVICE}p1 /tmp/eos-mnt
|
||||
|
||||
cat /tmp/eos-mnt/config.txt | grep -v "dtoverlay=" | sudo tee /tmp/eos-mnt/config.txt.tmp
|
||||
echo "dtoverlay=pwm-2chan" | sudo tee -a /tmp/eos-mnt/config.txt.tmp
|
||||
sudo mv /tmp/eos-mnt/config.txt.tmp /tmp/eos-mnt/config.txt
|
||||
|
||||
# Unmount the boot partition and mount embassy partition
|
||||
sudo umount /tmp/eos-mnt
|
||||
sudo mount ${OUTPUT_DEVICE}p2 /tmp/eos-mnt
|
||||
sudo cp product_key.txt /tmp/eos-mnt
|
||||
sudo umount /tmp/eos-mnt
|
||||
|
||||
sudo mount ${OUTPUT_DEVICE}p3 /tmp/eos-mnt
|
||||
# Enter the appmgr directory, copy over the built EmbassyOS binaries and systemd services, edit the nginx config, then create the .ssh directory
|
||||
cd appmgr/
|
||||
|
||||
sudo cp target/aarch64-unknown-linux-gnu/release/embassy-init /tmp/eos-mnt/usr/local/bin
|
||||
sudo cp target/aarch64-unknown-linux-gnu/release/embassyd /tmp/eos-mnt/usr/local/bin
|
||||
sudo cp target/aarch64-unknown-linux-gnu/release/embassy-cli /tmp/eos-mnt/usr/local/bin
|
||||
sudo cp *.service /tmp/eos-mnt/etc/systemd/system/
|
||||
|
||||
cd ..
|
||||
|
||||
# after performing npm run build
|
||||
sudo mkdir -p /tmp/eos-mnt/var/www/html
|
||||
sudo cp -R ui/www /tmp/eos-mnt/var/www/html/main
|
||||
sudo cp -R setup-wizard/www /tmp/eos-mnt/var/www/html/setup
|
||||
sudo cp -R diagnostic-ui/www /tmp/eos-mnt/var/www/html/diagnostic
|
||||
|
||||
# Make the .ssh directory
|
||||
sudo mkdir -p /tmp/eos-mnt/root/.ssh
|
||||
|
||||
sudo cp ./build/initialization.sh /tmp/eos-mnt/usr/local/bin
|
||||
sudo cp ./build/initialization.service /tmp/eos-mnt/etc/systemd/system/initialization.service
|
||||
sudo ln -s /etc/systemd/system/initialization.service /tmp/eos-mnt/etc/systemd/system/multi-user.target.wants/initialization.service
|
||||
|
||||
sudo umount /tmp/eos-mnt
|
||||
Reference in New Issue
Block a user