source:
make-mini-image/config/15-rootpass
Last change on this file was 1827, checked in by , 5 years ago | |
---|---|
|
|
File size: 266 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | set -e |
3 | |
4 | source CONFIG |
5 | source functions |
6 | |
7 | ensure BASE ARCH NAME ROOTPASSWD |
8 | |
9 | echo "Setting root password ..." |
10 | ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} bash -c "echo root:${ROOTPASSWD}|chpasswd" |
11 | |
12 | if [ "$?" != "0" ]; then |
13 | exit 1 |
14 | fi |
15 | |
16 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.