2022-10-08 13:35:39 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-09-05 14:13:51 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
source $(dirname $0)/env.sh
|
|
|
|
|
|
|
|
cd $LUNA_ROOT
|
|
|
|
|
2023-05-06 10:11:35 +00:00
|
|
|
if [ "$(id -u)" -ne "0" ]
|
|
|
|
then
|
|
|
|
echo "This script must be run under fakeroot."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-07-10 11:05:06 +00:00
|
|
|
chown -R root:root base
|
2023-05-06 10:11:35 +00:00
|
|
|
|
2023-01-21 21:44:16 +00:00
|
|
|
cmake --install $LUNA_BUILD_DIR
|
2023-05-06 10:11:35 +00:00
|
|
|
|
2023-07-10 11:05:06 +00:00
|
|
|
chmod a+s base/usr/bin/su
|
2023-05-06 10:11:35 +00:00
|
|
|
|
2024-04-10 20:37:36 +00:00
|
|
|
chmod 600 base/etc/shadow
|
|
|
|
|
2023-07-10 11:05:06 +00:00
|
|
|
mkdir -p base/home/selene
|
2023-05-17 17:40:37 +00:00
|
|
|
|
2023-07-10 11:05:06 +00:00
|
|
|
mkdir -p base/dev
|
|
|
|
mkdir -p base/mnt
|
|
|
|
mkdir -p base/tmp
|
|
|
|
|
|
|
|
rm -f base/bin
|
|
|
|
ln -s usr/bin base/bin
|
2024-02-11 12:39:51 +00:00
|
|
|
chown -h root:root base/bin
|
2023-08-22 13:08:07 +00:00
|
|
|
|
|
|
|
cp $LUNA_ROOT/LICENSE base/etc/skel/LICENSE
|