Lines Matching full:etc
14 # Create /etc/timestamp during image construction to give a reasonably sane default time setting
17 # Tweak files in /etc if read-only-rootfs is enabled
46 # Sort the user and group entries in /etc by ID in order to make the content
94 if [ -f ${IMAGE_ROOTFS}/etc/fstab ]; then
95 …ts/ro/;s/\([[:space:]]*[[:digit:]]\)\([[:space:]]*\)[[:digit:]]$/\1\20/}' ${IMAGE_ROOTFS}/etc/fstab
99 if [ -f ${IMAGE_ROOTFS}/etc/inittab ]; then
100 sed -i 's|/bin/mount -o remount,rw /|/bin/mount -o remount,ro /|' ${IMAGE_ROOTFS}/etc/inittab
103 # If we're using openssh and the /etc/ssh directory has no pre-generated keys,
104 # we should configure openssh to use the configuration file /etc/ssh/sshd_config_readonly
106 # If overlayfs-etc is used this is not done as /etc is treated as writable
108 …if ${@ 'true' if not bb.utils.contains('IMAGE_FEATURES', 'overlayfs-etc', True, False, d) or bb.ut…
109 if [ -d ${IMAGE_ROOTFS}/etc/ssh ]; then
110 if [ -e ${IMAGE_ROOTFS}/etc/ssh/ssh_host_rsa_key ]; then
111 echo "SYSCONFDIR=\${SYSCONFDIR:-/etc/ssh}" >> ${IMAGE_ROOTFS}/etc/default/ssh
112 echo "SSHD_OPTS=" >> ${IMAGE_ROOTFS}/etc/default/ssh
114 echo "SYSCONFDIR=\${SYSCONFDIR:-/var/run/ssh}" >> ${IMAGE_ROOTFS}/etc/default/ssh
115 echo "SSHD_OPTS='-f /etc/ssh/sshd_config_readonly'" >> ${IMAGE_ROOTFS}/etc/default/ssh
120 if [ -d ${IMAGE_ROOTFS}/etc/dropbear ]; then
121 if [ ! -e ${IMAGE_ROOTFS}/etc/dropbear/dropbear_rsa_host_key ]; then
122 echo "DROPBEAR_RSAKEY_DIR=/var/lib/dropbear" >> ${IMAGE_ROOTFS}/etc/default/dropbear
128 # Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes
129 if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then
130 sed -i 's/ROOTFS_READ_ONLY=no/ROOTFS_READ_ONLY=yes/' ${IMAGE_ROOTFS}/etc/default/rcS
134 if [ -x ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh ]; then
135 ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh
150 if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then
151 sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/shadow
153 if [ -e ${IMAGE_ROOTFS}/etc/passwd ]; then
154 sed -i 's%^root::%root:*:%' ${IMAGE_ROOTFS}/etc/passwd
234 if [ -e ${IMAGE_ROOTFS}/etc/fstab ]; then
235 match=`awk '$1 !~ "#" && $2 ~ /\/var\/volatile/{print $2}' ${IMAGE_ROOTFS}/etc/fstab 2> /dev/null`
280 # Can be used to create /etc/timestamp during image construction to give a reasonably
289 echo $sformatted > ${IMAGE_ROOTFS}/etc/timestamp
290 bbnote "rootfs_update_timestamp: set /etc/timestamp to $sformatted"
295 if [ -f ${IMAGE_ROOTFS}/etc/init.d/xserver-nodm ]; then
296 chmod a-x ${IMAGE_ROOTFS}/etc/init.d/xserver-nodm
301 for schema in ${IMAGE_ROOTFS}/etc/gconf/schemas/*.schemas
324 bbwarn "/etc/passwd:" `cat ${IMAGE_ROOTFS}/etc/passwd`
325 bbwarn "/etc/group:" `cat ${IMAGE_ROOTFS}/etc/group`
371 echo $sformatted > ${IMAGE_ROOTFS}/etc/version
372 bbnote "rootfs_reproducible: set /etc/version to $sformatted"