init: run resize2fs on /rw before mounting

In case of private.img was resized while the VM was powered off.
This commit is contained in:
Marek Marczykowski-Górecki 2013-11-21 03:36:56 +01:00
parent 2d760a3930
commit fabc72701c
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ start()
mkdir -p /var/run/qubes
if [ -e /dev/xvdb ] ; then
resize2fs /dev/xvdb 2> /dev/null || echo "'resize2fs /dev/xvdb' failed"
mount /rw
if ! [ -d /rw/home ] ; then

View File

@ -13,6 +13,7 @@ fi
INTERFACE=eth0 /usr/lib/qubes/setup-ip
if [ -e /dev/xvdb -a ! -e /etc/this-is-dvm ] ; then
resize2fs /dev/xvdb 2> /dev/null || echo "'resize2fs /dev/xvdb' failed"
mount /rw
if ! [ -d /rw/home ] ; then