Change-Id: Ie58af69f444924494d1a2949ba894ae55da7efc9
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
disable_root: False
ssh_pwauth: True
EOF
+
+cd /etc
+if [ ! -z $localtime_file ] && [ -f $localtime_file ]; then
+ ln -s -f $localtime_file /etc/localtime
+fi
chroot $mountdir df -h
cp $cmd $mountdir/$(basename $cmd)
+
+ if [ -h /etc/localtime ]; then
+ export localtime_file=$(ls -l /etc/localtime | grep "^l" | awk '{print $11}')
+ elif [ -f /etc/localtime ]; then
+ cp /etc/loccaltime $mountdir/etc/
+ fi
}
# modify image running a script using in a chrooted environment