rootfsinstall: fix a problem with popd avoiding to use it

This commit is contained in:
Silvan Calarco 2013-09-17 16:58:51 +02:00
parent b71186b4fb
commit 1c8cdbb131

View File

@ -180,7 +180,7 @@ framebuffer_ignore_alpha=1" > $BOOTMP/config.txt
fi # rpimode
pushd $ROOTMP >/dev/null || {
(cd $ROOTMP >/dev/null || {
echo "ERROR: unable to access system partition mount point; aborting."
umount $PARTITION2
rmdir $ROOTMP
@ -190,7 +190,7 @@ pushd $ROOTMP >/dev/null || {
echo "Uncompressing $ROOTFSARCHIVE..."
echo "This can take a while, please wait..."
tar xf $ROOTFSARCHIVE
popd >/dev/null
)
sync
umount $PARTITION2