Skip to content

Commit

Permalink
Support ut20.04 images
Browse files Browse the repository at this point in the history
  • Loading branch information
peat-psuwit authored and jbruechert committed Jun 9, 2021
1 parent 6fdbc73 commit f96cf7c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions functions/distributions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ halium | reference)
pm | neon | debian-pm | debian-pm-caf)
IMAGE_SIZE=4G
;;
ut)
ut | ut20.04)
IMAGE_SIZE=3G
;;
none)
Expand Down Expand Up @@ -137,11 +137,15 @@ function post_install() {
# set static path for now
chroot_run "dpkg-reconfigure openssh-server"
;;
ut)
ut | ut20.04)
echo -n "enabling SSH ... "
sudo sed -i 's/PasswordAuthentication=no/PasswordAuthentication=yes/g' "$ROOTFS_DIR/etc/init/ssh.override"
sudo sed -i 's/manual/start on startup/g' "$ROOTFS_DIR/etc/init/ssh.override"
sudo sed -i 's/manual/start on startup/g' "$ROOTFS_DIR/etc/init/usb-tethering.conf"
if [ "$1" = ut ]; then
sudo sed -i 's/PasswordAuthentication=no/PasswordAuthentication=yes/g' "$ROOTFS_DIR/etc/init/ssh.override"
sudo sed -i 's/manual/start on startup/g' "$ROOTFS_DIR/etc/init/ssh.override"
sudo sed -i 's/manual/start on startup/g' "$ROOTFS_DIR/etc/init/usb-tethering.conf"
else
chroot_run "systemctl enable ssh.service usb-tethering.service" 1>&4
fi
echo "[done]"

setup_passwd phablet $USERPASSWORD
Expand Down
2 changes: 1 addition & 1 deletion functions/misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function usage() {
Options:
-p POSTINSTALL run common post installation tasks for release.
supported: reference, neon, ut, debian-pm, debian-pm-caf, none
supported: reference, neon, ut, ut20.04, debian-pm, debian-pm-caf, none
default: none
-v verbose output.
Expand Down
2 changes: 1 addition & 1 deletion halium-install
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ while [ -n "$1" ] ; do
shift
export ROOTFS_RELEASE="$1"
case $ROOTFS_RELEASE in
"halium" | "debian-pm" | "reference" | "debian-pm-caf" | "pm" | "neon" | "ut" | "none")
"halium" | "debian-pm" | "reference" | "debian-pm-caf" | "pm" | "neon" | "ut" | "ut20.04" | "none")
;;
*)
echo "Unsupported post install release! Exiting now"
Expand Down

0 comments on commit f96cf7c

Please sign in to comment.