Also rename /tmp/pi for coherence
This commit is contained in:
parent
905bf38611
commit
afbe4e2910
5 changed files with 7 additions and 7 deletions
|
@ -502,18 +502,18 @@ $ sudo rm -fr /etc/console-setup
|
||||||
$ sudo ln -s /tmp/console-setup /etc/console-setup
|
$ sudo ln -s /tmp/console-setup /etc/console-setup
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Link `/home/pi-admin/.gnupg` to `/tmp/pi/.gnupg`
|
#### Link `/home/pi-admin/.gnupg` to `/tmp/pi-admin/.gnupg`
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ rm -fr /home/pi-admin/.gnupg
|
$ rm -fr /home/pi-admin/.gnupg
|
||||||
|
|
||||||
$ ln -s /tmp/pi/.gnupg /home/pi-admin/.gnupg
|
$ ln -s /tmp/pi-admin/.gnupg /home/pi-admin/.gnupg
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Enable tmp.mount
|
#### Enable tmp.mount
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ echo -e "D /tmp 1777 root root -\nD /tmp/console-setup 1700 root root -\nD /tmp/pi 1700 pi pi -\nD /tmp/pi/.gnupg 1700 pi pi -\nD /var/tmp 1777 root root -" | sudo tee /etc/tmpfiles.d/tmp.conf
|
$ echo -e "D /tmp 1777 root root -\nD /tmp/console-setup 1700 root root -\nD /tmp/pi-admin 1700 pi pi -\nD /tmp/pi-admin/.gnupg 1700 pi pi -\nD /var/tmp 1777 root root -" | sudo tee /etc/tmpfiles.d/tmp.conf
|
||||||
|
|
||||||
$ sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
|
$ sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ normal=$(tput sgr0)
|
||||||
basedir=$(dirname "$0")
|
basedir=$(dirname "$0")
|
||||||
|
|
||||||
dev="/dev/sda1"
|
dev="/dev/sda1"
|
||||||
tmp="/tmp/pi"
|
tmp="/tmp/pi-admin"
|
||||||
usb="/tmp/usb"
|
usb="/tmp/usb"
|
||||||
|
|
||||||
tput reset
|
tput reset
|
||||||
|
|
|
@ -54,7 +54,7 @@ red=$(tput setaf 1)
|
||||||
normal=$(tput sgr0)
|
normal=$(tput sgr0)
|
||||||
|
|
||||||
dev="/dev/sda1"
|
dev="/dev/sda1"
|
||||||
tmp="/tmp/pi"
|
tmp="/tmp/pi-admin"
|
||||||
usb="/tmp/usb"
|
usb="/tmp/usb"
|
||||||
|
|
||||||
tput reset
|
tput reset
|
||||||
|
|
|
@ -6,7 +6,7 @@ set -o pipefail
|
||||||
bold=$(tput bold)
|
bold=$(tput bold)
|
||||||
normal=$(tput sgr0)
|
normal=$(tput sgr0)
|
||||||
|
|
||||||
mkdir -p /tmp/pi
|
mkdir -p /tmp/pi-admin
|
||||||
|
|
||||||
printf "$bold%s$normal\n" "Please type sudo password and press enter"
|
printf "$bold%s$normal\n" "Please type sudo password and press enter"
|
||||||
read -rs password
|
read -rs password
|
||||||
|
|
|
@ -15,7 +15,7 @@ normal=$(tput sgr0)
|
||||||
basedir=$(dirname "$0")
|
basedir=$(dirname "$0")
|
||||||
|
|
||||||
dev="/dev/sda1"
|
dev="/dev/sda1"
|
||||||
tmp="/tmp/pi"
|
tmp="/tmp/pi-admin"
|
||||||
usb="/tmp/usb"
|
usb="/tmp/usb"
|
||||||
|
|
||||||
tput reset
|
tput reset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue