From 27294e182a5c69664e3b4437fbeeaac4f179a78d Mon Sep 17 00:00:00 2001 From: boseong choi Date: Thu, 10 Mar 2016 15:07:28 +0900 Subject: [PATCH] Add symlink /etc/smack -> ../opt/etc/smack move /etc/smack to /opt/etc/smack if /etc/smack is directory, and create symlink /etc/smack -> ../opt/etc/smack Change-Id: I6ceb58f93645fe884d973d04a11da9d1d3ee00cd Signed-off-by: boseong choi --- scripts/generic-base.post | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/generic-base.post b/scripts/generic-base.post index 66cb3df..cfd5f93 100644 --- a/scripts/generic-base.post +++ b/scripts/generic-base.post @@ -11,6 +11,11 @@ test -d /home && cp -arf /home/* /opt/home/ rm -rf /home ln -snf opt/home /home +test ! -e /opt/etc/smack && mkdir -p /opt/etc/smack +test -d /etc/smack && cp -arf /etc/smack/* /opt/etc/smack/ +rm -rf /etc/smack +ln -snf ../opt/etc/smack /etc/smack + 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) -- 2.7.4