Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tweaks to root password setting process
The problem seems to be that that, sometimes while running passwd the first time, the "New Password" prompt takes a little more time than usual.
  • Loading branch information
mndar committed Sep 13, 2015
1 parent a9c6ccc commit 7d63bed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rbfinstaller.sh
@@ -0,0 +1,3 @@
dd if="/disks/sdb1/newcentos/qemu-centos-image.img" of=/dev/sde bs=1M
boards.d/cubietruck.sh /dev/sde none files/cubietruck/u-boot-sunxi-with-spl.bin
sync
4 changes: 2 additions & 2 deletions rootpass.exp
@@ -1,9 +1,9 @@
#!/usr/bin/expect
#log_user 0
set timeout 1
set timeout 4
set rootfs [lindex $argv 0]
set password [lindex $argv 1]
spawn chroot $rootfs passwd
spawn chroot $rootfs passwd --force root
expect "Changing password for user root.\nNew Password:"
send "$password\r"
expect "Retype new Password:"
Expand Down

0 comments on commit 7d63bed

Please sign in to comment.