Skip to content

Commit

Permalink
Change default root password
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Apr 23, 2024
1 parent c6b391a commit 2417dcb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stages:
Welcome to \S !
IP address \4
Login with user: root, password: cos
Login with user: root, password: elemental
Start the installer with "elemental install <device>" to install it in the local system
permissions: 0644
owner: 0
Expand All @@ -41,7 +41,7 @@ stages:
Welcome to \S (passive)!
IP address \4
Login with user: root, password: cos
Login with user: root, password: elemental
There might be an issue with the active partition, booted in passive.
permissions: 0644
owner: 0
Expand All @@ -60,7 +60,7 @@ stages:
Welcome to \S recovery!
IP address \4
Login with user: root, password: cos
Login with user: root, password: elemental
Reset the active system with "elemental reset".
permissions: 0644
owner: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ stages:
entity: |
kind: "shadow"
username: "root"
password: "cos"
password: "elemental"
14 changes: 7 additions & 7 deletions tests/vm/sut.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ const (

TimeoutRawDiskTest = 600 // Timeout to connect for recovery_raw_disk_test

Ext2 = "ext2"
Ext3 = "ext3"
Ext4 = "ext4"
Cos = "cos"
Ext2 = "ext2"
Ext3 = "ext3"
Ext4 = "ext4"
Elemental = "elemental"
)

// DiskLayout is the struct that contains the disk output from lsblk
Expand Down Expand Up @@ -91,7 +91,7 @@ func NewSUT() *SUT {
}
pass := os.Getenv("COS_PASS")
if pass == "" {
pass = Cos
pass = Elemental
}

host := os.Getenv("COS_HOST")
Expand Down Expand Up @@ -137,9 +137,9 @@ func (s *SUT) ChangeBoot(b string) error {

switch b {
case Active:
bootEntry = Cos
bootEntry = "active"
case Passive:
bootEntry = "fallback"
bootEntry = "1"
case Recovery:
bootEntry = "recovery"
}
Expand Down

0 comments on commit 2417dcb

Please sign in to comment.