summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;"