Added cowspace-set script
This commit is contained in:
parent
35fb13fbda
commit
2b1c6136ef
2 changed files with 26 additions and 0 deletions
25
airootfs/usr/local/bin/cowspace-set
Executable file
25
airootfs/usr/local/bin/cowspace-set
Executable 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
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue