rootfsinstall: fix a problem with popd avoiding to use it
This commit is contained in:
parent
b71186b4fb
commit
1c8cdbb131
@ -180,7 +180,7 @@ framebuffer_ignore_alpha=1" > $BOOTMP/config.txt
|
|||||||
|
|
||||||
fi # rpimode
|
fi # rpimode
|
||||||
|
|
||||||
pushd $ROOTMP >/dev/null || {
|
(cd $ROOTMP >/dev/null || {
|
||||||
echo "ERROR: unable to access system partition mount point; aborting."
|
echo "ERROR: unable to access system partition mount point; aborting."
|
||||||
umount $PARTITION2
|
umount $PARTITION2
|
||||||
rmdir $ROOTMP
|
rmdir $ROOTMP
|
||||||
@ -190,7 +190,7 @@ pushd $ROOTMP >/dev/null || {
|
|||||||
echo "Uncompressing $ROOTFSARCHIVE..."
|
echo "Uncompressing $ROOTFSARCHIVE..."
|
||||||
echo "This can take a while, please wait..."
|
echo "This can take a while, please wait..."
|
||||||
tar xf $ROOTFSARCHIVE
|
tar xf $ROOTFSARCHIVE
|
||||||
popd >/dev/null
|
)
|
||||||
|
|
||||||
sync
|
sync
|
||||||
umount $PARTITION2
|
umount $PARTITION2
|
||||||
|
Loading…
Reference in New Issue
Block a user