summaryrefslogtreecommitdiff
path: root/classes/mlinux-image.bbclass
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-12-30 12:27:32 -0600
committerJesse Gilles <jgilles@multitech.com>2014-12-30 12:27:32 -0600
commit527ae9e71d4acca480890316f64a694065147e88 (patch)
tree50f8414d67d8edbbfa445a48074b6a77ccdc1aec /classes/mlinux-image.bbclass
parent1975978661c26b94935573141469b364c2235d62 (diff)
downloadmeta-mlinux-527ae9e71d4acca480890316f64a694065147e88.tar.gz
meta-mlinux-527ae9e71d4acca480890316f64a694065147e88.tar.bz2
meta-mlinux-527ae9e71d4acca480890316f64a694065147e88.zip
mlinux-image.bbclass: fix quoting of ROOT_PASSWORD_HASH
Diffstat (limited to 'classes/mlinux-image.bbclass')
-rw-r--r--classes/mlinux-image.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/mlinux-image.bbclass b/classes/mlinux-image.bbclass
index 8da5e97..dd3a21a 100644
--- a/classes/mlinux-image.bbclass
+++ b/classes/mlinux-image.bbclass
@@ -1,9 +1,9 @@
# set specified root password in image using ROOT_PASSWORD_HASH
mlinux_set_root_password () {
if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then
- sed -i "s%^root:[^:]*:%root:${ROOT_PASSWORD_HASH}:%" ${IMAGE_ROOTFS}/etc/shadow
+ sed -i 's%^root:[^:]*:%root:${ROOT_PASSWORD_HASH}:%' ${IMAGE_ROOTFS}/etc/shadow
elif [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then
- sed -i "s%^root:[^:]*:%root:${ROOT_PASSWORD_HASH}:%" ${IMAGE_ROOTFS}/etc/passwd
+ sed -i 's%^root:[^:]*:%root:${ROOT_PASSWORD_HASH}:%' ${IMAGE_ROOTFS}/etc/passwd
fi
}
ROOTFS_POSTPROCESS_COMMAND += "mlinux_set_root_password;"