Skip to content

Commit bab9e97

Browse files
committed
update README, fix unmounting sys, dev after installing packages
1 parent 46ec1d2 commit bab9e97

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,13 @@ If you are curious how the initramfs, and root partition encryption work on Praw
106106
If you run in to any problems please open an issue.
107107
_If you install to the internal emmc this will show a bunch of scary red warnings that are a result of the emmc (internal storage) having a few unwritable (bad) blocks at the beginning of the device and the kernel message level being set low for debugging. They don't effect anything long-term. All C201s have these bad blocks at the beginning of the emmc_
108108

109+
After the partitioning and the filesystem copy is complete, it will prompt you to install either the xfce4 or the lxqt desktop environment, sound, trackpad, and Xorg configurations
110+
It will also prompt you to make a new user that automatically gets sudo privileges.
111+
109112
After reboot, remove the external media you had booted from originally. If you installed to the internal emmc press `control+d`, if you installed to an external device press `control+u`
110113

111114
If you press nothing, it will boot to the internal storage by default.
112115

113-
Now to install the packages, desktop environment, and setup a user
114-
Login as root again and run:
115-
```
116-
cd /InstallResources
117-
./InstallPackages.sh
118-
```
119-
Which installs either the xfce4 or the lxqt desktop enviroment, sound, trackpad, and Xorg configurations as well as prompts you to make a new user that automatically gets sudo privileges.
120-
121-
When finished, it will reboot once again placing you at a login screen.
122-
123116
Congratulations! Your computer is now a Prawn! https://sprorgnsm.bandcamp.com/track/the-prawn-song
124117

125118
### Expand PrawnOS
@@ -137,24 +130,20 @@ Choose `Expand` at the prompt
137130

138131
If you run in to any problems please open an issue.
139132

140-
Now to install the packages, desktop environment, and setup a user
141-
```
142-
cd /InstallResources
143-
./InstallPackages.sh
144-
```
145-
Which installs either the xfce4 or the lxqt desktop enviroment, sound, trackpad, and Xorg configurations as well as prompts you to make a new user that automatically gets sudo privileges.
133+
Now you can choose to install the packages, which are either the xfce4 or the lxqt desktop enviroment, sound, trackpad, and Xorg configurations.
134+
It will also prompt you to make a new user that automatically gets sudo privileges.
146135

147-
When finished, it will reboot.
136+
If you choose in install the packages, when installation is complete it will reboot.
148137
Press `control+u` at boot once again, and you'll get to a login screen.
149138

150139
Congratulations! Your computer is now a Prawn! https://sprorgnsm.bandcamp.com/track/the-prawn-song
151140

152141
#### If you simply want a basic Linux environment with no desktop environment or window manager:
153-
Skip running `InstallPackages`
142+
Say no at the prompt to install packages and a desktop environment.
154143
Congratulations: you are done! Welcome to PrawnOS. You should probably change the root password and make a user, but I'm not your boss or anything so I'll leave that to you.
155144

156145
#### Connecting to WiFi in a basic environment
157-
If you just want a basic environment without xfce or lxqt can skip running InstallPackages.sh. You can connect to WiFi using wpa_supplicant by running the following commands:
146+
If have a basic environment without xfce or lxqt you can connect to WiFi using wpa_supplicant by running the following commands:
158147
```
159148
wpa_passphrase <Network_name> <network_password> > wpa.conf
160149
wpa_supplicant -i wlan0 -c wpa.conf

scripts/InstallScripts/InstallPackages.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,3 @@ usermod -a -G sudo,netdev,input,video $username
179179

180180
dmesg -E
181181

182-
183-
184-
reboot

scripts/InstallScripts/InstallPrawnOS.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ expand() {
263263
while true; do
264264
read -p "Install a desktop environment and the supporting packages? [Y/n]" ins
265265
case $ins in
266-
[Yy]* ) /InstallResources/InstallPackages.sh; break;;
266+
[Yy]* ) /InstallResources/InstallPackages.sh; reboot;;
267267
[Nn]* ) exit;;
268268
* ) echo "Please answer y or n";;
269269
esac
@@ -281,8 +281,10 @@ install_packages() {
281281
mount --rbind /dev $TARGET_MOUNT/dev/
282282
chroot $TARGET_MOUNT/ ./InstallResources/InstallPackages.sh
283283
umount $TARGET_MOUNT/proc/
284-
umount $TARGET_MOUNT/sys/
285-
umount $TARGET_MOUNT/dev/
284+
mount --make-rprivate /sys
285+
mount --make-rprivate /dev
286+
umount -R $TARGET_MOUNT/sys/
287+
umount -R $TARGET_MOUNT/dev/
286288

287289
}
288290

0 commit comments

Comments
 (0)