2016-08-17 21:47:22 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-09-30 04:45:31 +02:00
|
|
|
read -r disk_name
|
2016-08-17 21:47:22 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case $disk_name in
|
|
|
|
private)
|
|
|
|
# force some read to refresh device size
|
|
|
|
head /dev/xvdb > /dev/null
|
|
|
|
resize2fs /dev/xvdb
|
|
|
|
;;
|
|
|
|
root)
|
|
|
|
# force some read to refresh device size
|
|
|
|
head /dev/xvda > /dev/null
|
2017-10-17 20:51:12 +02:00
|
|
|
/usr/lib/qubes/resize-rootfs
|
2016-08-17 21:47:22 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Automatic resize of '$disk_name' not supported" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|