Skip to content

Commit

Permalink
mount /var/cache/apt and /var/lib/apt in remount for easier experimen…
Browse files Browse the repository at this point in the history
…tation
  • Loading branch information
Fuseteam committed Oct 17, 2024
1 parent 847c83a commit 81d6963
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion remount
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env bash
if [ $(rorw) = "ro" ]; then
set -x
sudo -k mount -o remount,rw /
sudo -K
sudo mount -t tmpfs tmpfs /var/lib/apt
sudo mount -t tmpfs tmpfs /var/cache/apt
sudo mount -o remount,rw /
sudo -K
elif [ $(rorw) = "rw" ]; then
set -x
sudo -k mount -o remount,ro /
Expand Down

0 comments on commit 81d6963

Please sign in to comment.