Preconfigure SSH server on test image

* This allows logging in to freshly built image using ssh.

Change-Id: I15baeee455827b73f12e1a222b166bd7975786dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10426
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
Reviewed-by: Priyanshu Gupta <[email protected]>
This commit is contained in:
Kacper Kasper
2026-03-15 20:55:27 +00:00
parent 36367253cd
commit ee10ca4b42
5 changed files with 34 additions and 3 deletions
+9 -2
View File
@@ -189,16 +189,23 @@ rule DefineDefaultBuildProfiles
case "test-*" : {
Echo Building Haiku UnitTest Target ;
HAIKU_ROOT_USER_NAME = user ;
HAIKU_ROOT_USER_REAL_NAME = "Tester" ;
HAIKU_IMAGE_HOST_NAME ?= shredder ;
if $(DEBUG) != 0 {
HAIKU_IMAGE_SIZE ?= 450 ;
} else {
HAIKU_IMAGE_SIZE ?= 300 ;
}
AddHaikuImageSystemPackages
openssh
openssl3
!gcc2 @{ python3.10 }@
gcc2 @{ python3.10_x86@secondary_x86 }@
!gcc2 @{ python3.10 nano }@
gcc2 @{
python3.10_x86@secondary_x86
nano_x86@secondary_x86
}@
;
}
+1 -1
View File
@@ -8,7 +8,7 @@ if $(HAIKU_BUILD_TYPE) = bootstrap {
} else if $(HAIKU_BUILD_TYPE) = minimum {
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions minimum ] ;
} else if $(HAIKU_BUILD_TYPE) = test {
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions minimum ] ;
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions test ] ;
} else {
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions regular ] ;
}
+13
View File
@@ -0,0 +1,13 @@
# This file defines the content of the test Haiku image.
# import everything from the minimum image
include [ FDirName $(HAIKU_BUILD_RULES_DIR) images definitions minimum ] ;
SYSTEM_APPS = [ FFilterByBuildFeatures
NetworkStatus
ProcessController
SerialConnect
Terminal
Workspaces ] ;
DESKBAR_APPLICATIONS = SerialConnect Terminal ;
+3
View File
@@ -265,6 +265,9 @@ AddFilesToPackage data user_launch : $(userLaunchScripts) ;
# first login scripts
local firstLoginFiles = default_deskbar_items.sh ;
if $(HAIKU_BUILD_TYPE) = test {
firstLoginFiles += test_image.sh ;
}
firstLoginFiles = $(firstLoginFiles:G=first-login) ;
SEARCH on $(firstLoginFiles)
= [ FDirName $(HAIKU_TOP) data system boot first_login ] ;