Added cowspace-set script

This commit is contained in:
Logan G 2024-02-16 16:34:12 -07:00
parent 35fb13fbda
commit 2b1c6136ef
Signed by: logan
GPG key ID: E328528C921E7A7A
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -e
if [[ "$1" == "-h" || "$1" == "--help" || "$1" == "" ]]; then
cat <<EOF
Usage: $0 SIZE
Resizes the root of the live filesystem.
SIZE is an integer with optional unit.
Valid units are K,M,G,T,P, and E, denoting powers of 1024.
EOF
exit 0
fi
if [[ "$EUID" != 0 ]]; then
echo "Please run this script as root."
exit 1
fi
set -x
mount -o remount,size="$1" /run/archiso/cowspace

View file

@ -26,5 +26,6 @@ file_permissions=(
["/usr/local/bin/Installation_guide"]="0:0:755" ["/usr/local/bin/Installation_guide"]="0:0:755"
["/usr/local/bin/livecd-sound"]="0:0:755" ["/usr/local/bin/livecd-sound"]="0:0:755"
["/usr/local/bin/import-gsettings"]="0:0:755" ["/usr/local/bin/import-gsettings"]="0:0:755"
["/usr/local/bin/cowspace-set"]="0:0:755"
["/etc/profile.d/99-greeting.sh"]="0:0:755" ["/etc/profile.d/99-greeting.sh"]="0:0:755"
) )