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
|
|
|
|
|
|
|
|
if [ "$USER" == "root" ]
|
|
|
|
then
|
|
|
|
echo "This script must be run under fakeroot instead of as root."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
chown -R root:root initrd
|
|
|
|
|
2023-01-21 21:44:16 +00:00
|
|
|
cmake --install $LUNA_BUILD_DIR
|
2023-05-06 10:11:35 +00:00
|
|
|
|
|
|
|
chmod 400 initrd/boot/moon
|
|
|
|
chmod a+s initrd/bin/su
|
|
|
|
|
|
|
|
mkdir -p initrd/home/selene
|
|
|
|
chown 1000:1000 initrd/home/selene
|
2023-05-17 17:40:37 +00:00
|
|
|
|
|
|
|
mkdir -p initrd/dev
|