mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
Fix to use number version instead of codename to the image file name
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I1af52b44b56ea27a8d72551863344542a9a814e1
This commit is contained in:
@@ -197,6 +197,7 @@ do_preinstall() {
|
||||
-e "s,@@DEFAULT_ROOT_PASSWD@@,$(default_root_passwd),g" \
|
||||
-e "s,@@DEFAULT_USER@@,$(default_user),g" \
|
||||
-e "s,@@DEFAULT_USER_PASSWD@@,$(default_user_passwd),g" \
|
||||
-e "s,@@DEFAULT_DISTRO@@,${DISTRO},g" \
|
||||
${fixup}
|
||||
done
|
||||
|
||||
|
||||
16
menu
16
menu
@@ -109,9 +109,23 @@ do_menu_default_user_passwd() {
|
||||
${DEFAULT_PASSWD} 2>&1 >/dev/tty)
|
||||
}
|
||||
|
||||
distro_version() {
|
||||
case $1 in
|
||||
bionic)
|
||||
echo "18.04"
|
||||
;;
|
||||
disco)
|
||||
echo "19.04"
|
||||
;;
|
||||
focal)
|
||||
echo "20.04"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
do_menu() {
|
||||
while true; do
|
||||
IMAGE_FILE=ubuntu-${DISTRO}-${FLAVOUR}-${BOARD}-`date +%Y%m%d`
|
||||
IMAGE_FILE=ubuntu-$(distro_version ${DISTRO})-${FLAVOUR}-${BOARD}-`date +%Y%m%d`
|
||||
CHOICE=$(dialog --clear --backtitle "ODROID-STAMPER" \
|
||||
--title "Custom Ubuntu Recipe" \
|
||||
--extra-button --extra-label "Done" \
|
||||
|
||||
Reference in New Issue
Block a user