for change directory structure /var to /opt/var and /home to /opt/home,
move files in /var to /opt/var and make symlink /var -> opt/var
(/home) (/opt/home) (/home -> opt/home)
by post script
Change-Id: I8b63d38110aa583ae9ced1f7111353050659c572
Signed-off-by: boseong choi <boseong.choi@samsung.com>
#!/bin/sh
echo "#################### generic-base.post ####################"
+test ! -e /opt/var && mkdir -p /opt/var
+test -d /var && cp -arf /var/* /opt/var/
+rm -rf /var
+ln -snf opt/var /var
+
+test ! -e /opt/home && mkdir -p /opt/home
+test -d /home && cp -arf /home/* /opt/home/
+rm -rf /home
+ln -snf opt/home /home
+
build_ts=$(date -u +%s)
build_date=$(date -u --date @$build_ts +%Y%m%d_%H%M%S)
build_time=$(date -u --date @$build_ts +%H:%M:%S)