Re: [OE-core] Setting root password

2013-10-11 Thread ChenQi
On 10/11/2013 10:35 PM, Jack Mitchell wrote: What is the best way to set the root password for an image during build time? I have come across this snippet: ROOTFS_POSTPROCESS_COMMAND += " \ sed 's%^root:[^:]*:%root:${PASSWD}:%' \ < ${IMAGE_ROOTFS}/etc/shadow \ > ${IMA

Re: [OE-core] Setting root password

2013-10-11 Thread Koen Kooi
Op 11 okt. 2013, om 16:35 heeft Jack Mitchell het volgende geschreven: > What is the best way to set the root password for an image during build > time? > > I have come across this snippet: > > ROOTFS_POSTPROCESS_COMMAND += " \ >sed 's%^root:[^:]*:%root:${PASSWD}:%' \ >< ${IMA

[OE-core] Setting root password

2013-10-11 Thread Jack Mitchell
What is the best way to set the root password for an image during build time? I have come across this snippet: ROOTFS_POSTPROCESS_COMMAND += " \ sed 's%^root:[^:]*:%root:${PASSWD}:%' \ < ${IMAGE_ROOTFS}/etc/shadow \ > ${IMAGE_ROOTFS}/etc/shadow.new;\ mv ${IMAGE_ROO