summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/rootfs-postcommands.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe/rootfs-postcommands.bbclass
index 06388b72fb..29ee74932a 100644
--- a/meta/classes-recipe/rootfs-postcommands.bbclass
+++ b/meta/classes-recipe/rootfs-postcommands.bbclass
@@ -241,10 +241,10 @@ read_only_rootfs_hook () {
241# 241#
242zap_empty_root_password () { 242zap_empty_root_password () {
243 if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then 243 if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then
244 sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/shadow 244 sed --follow-symlinks -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/shadow
245 fi 245 fi
246 if [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then 246 if [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then
247 sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/passwd 247 sed --follow-symlinks -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/passwd
248 fi 248 fi
249} 249}
250 250