mirror of
https://github.com/krglaws/MyLFS.git
synced 2025-08-03 16:44:38 +00:00
always call download_pkgs whether starting from init_image or from a starting phase/package
This commit is contained in:
7
mylfs.sh
7
mylfs.sh
@ -186,9 +186,6 @@ function init_image {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# download packages into ./pkgs directory
|
|
||||||
download_pkgs
|
|
||||||
|
|
||||||
echo -n "Creating image file... "
|
echo -n "Creating image file... "
|
||||||
|
|
||||||
trap "echo 'init failed.' && exit 1" ERR
|
trap "echo 'init failed.' && exit 1" ERR
|
||||||
@ -917,7 +914,7 @@ fi
|
|||||||
# Perform single operations
|
# Perform single operations
|
||||||
$CHECKDEPS && check_dependencies && exit
|
$CHECKDEPS && check_dependencies && exit
|
||||||
$DOWNLOAD && download_pkgs && exit
|
$DOWNLOAD && download_pkgs && exit
|
||||||
$INIT && init_image && unmount_image && exit
|
$INIT && download_pkgs && init_image && unmount_image && exit
|
||||||
$MOUNT && mount_image && exit
|
$MOUNT && mount_image && exit
|
||||||
$UNMOUNT && unmount_image && exit
|
$UNMOUNT && unmount_image && exit
|
||||||
$CLEAN && clean_image && exit
|
$CLEAN && clean_image && exit
|
||||||
@ -925,9 +922,11 @@ $CLEAN && clean_image && exit
|
|||||||
|
|
||||||
if [ -n "$STARTPHASE" ]
|
if [ -n "$STARTPHASE" ]
|
||||||
then
|
then
|
||||||
|
download_pkgs
|
||||||
mount_image
|
mount_image
|
||||||
elif $BUILDALL
|
elif $BUILDALL
|
||||||
then
|
then
|
||||||
|
download_pkgs
|
||||||
init_image
|
init_image
|
||||||
else
|
else
|
||||||
usage
|
usage
|
||||||
|
Reference in New Issue
Block a user