From 0753b39d894843688494a0ba0133bccd774b7916 Mon Sep 17 00:00:00 2001
From: Federico Di Pierro <nierro92@gmail.com>
Date: Thu, 29 Feb 2024 18:02:45 +0100
Subject: [PATCH] fix(pkg/driverbuilder): force-set login shell when starting
 driverkit script.

This will enforce bash to parse bashrc / bash profile files.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
---
 pkg/driverbuilder/docker.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pkg/driverbuilder/docker.go b/pkg/driverbuilder/docker.go
index 0645f8fc..280a4bf6 100644
--- a/pkg/driverbuilder/docker.go
+++ b/pkg/driverbuilder/docker.go
@@ -259,6 +259,7 @@ func (bp *DockerBuildProcessor) Start(b *builder.Build) error {
 		Env:          envs,
 		Cmd: []string{
 			"/bin/bash",
+			"-l",
 			"/driverkit/driverkit.sh",
 		},
 	})