internal/boot: Make some function public
More specifically only those that are needed in /cmd/osbuild-image/tests. This patch can be merged with the previous one if we want to make sure every commit can be built, but I'm going to keep it like this for now so that we can easily see the changes.
This commit is contained in:
parent
ec6ce8387d
commit
125fce92db
6 changed files with 62 additions and 61 deletions
|
|
@ -53,9 +53,9 @@ func killProcessCleanly(process *os.Process, timeout time.Duration) error {
|
|||
return process.Kill()
|
||||
}
|
||||
|
||||
// generateRandomString generates a new random string with specified prefix.
|
||||
// GenerateRandomString generates a new random string with specified prefix.
|
||||
// The random part is based on UUID.
|
||||
func generateRandomString(prefix string) (string, error) {
|
||||
func GenerateRandomString(prefix string) (string, error) {
|
||||
id, err := uuid.NewRandom()
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue