mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
green/blue labels
This commit is contained in:
committed by
Aiden McClelland
parent
f995b5a12a
commit
6f1cd49b1b
@@ -14,13 +14,14 @@ 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
|
||||
sudo e2label ${OUTPUT_DEVICE}p3 green
|
||||
sudo e2label ${OUTPUT_DEVICE}p4 blue
|
||||
|
||||
# Mount the boot partition and config
|
||||
mkdir -p /tmp/eos-mnt
|
||||
sudo mount ${OUTPUT_DEVICE}p1 /tmp/eos-mnt
|
||||
|
||||
sudo sed -i 's/LABEL=writable/LABEL=green/g' /tmp/eos-mnt/cmdline.txt
|
||||
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
|
||||
@@ -55,4 +56,4 @@ 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
|
||||
sudo umount /tmp/eos-mnt
|
||||
|
||||
Reference in New Issue
Block a user