diff --git a/README.md b/README.md index f2481bf..c14b84e 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,11 @@ Edit corresponding files in [image/overlay](./image/overlay) to customize VM beh # cp .env.example .env # vim .env # VM_OPTS="--no-cache" HY_OPTS="--no-cache" ./BUILD.sh +# fallocate -l 128G ./data/data.raw +# sgdisk -o -n 1:0:0 -t 1:8300 ./data.raw +# losetup -Pf ./data.raw +# mkfs.ext4 /dev/loop0p1 +# losetup -d /dev/loop0 # vim docker-compose.yml # docker compose up diff --git a/image/overlay/etc/fstab b/image/overlay/etc/fstab index 46e34d6..02f0fb9 100644 --- a/image/overlay/etc/fstab +++ b/image/overlay/etc/fstab @@ -1,4 +1,4 @@ # /etc/fstab: static file system information # # -/dev/vdb /data ext4 rw,noatime 0 1 \ No newline at end of file +/dev/vdb1 /data ext4 rw,noatime 0 1 diff --git a/image/overlay/etc/init.d/auth-server b/image/overlay/etc/init.d/auth-server index 3337289..d80abfb 100755 --- a/image/overlay/etc/init.d/auth-server +++ b/image/overlay/etc/init.d/auth-server @@ -1,7 +1,8 @@ #!/sbin/openrc-run command="/usr/bin/auth-server" command_background=true -command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_ >/dev/console 2>&1" +command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_ 2>&1" +output_log="/data/auth-server.log" pidfile="/run/${RC_SVCNAME}.pid" diff --git a/image/overlay/etc/init.d/bubble b/image/overlay/etc/init.d/bubble index 0ad605b..337d20e 100755 --- a/image/overlay/etc/init.d/bubble +++ b/image/overlay/etc/init.d/bubble @@ -5,6 +5,7 @@ depend() { } command="/usr/bin/bubble" -command_args="-config /daemon/config.yaml >/dev/console 2>&1" +command_args="-config /daemon/config.yaml 2>&1" pidfile="/run/${RC_SVCNAME}.pid" command_background=true +output_log="/data/bubble.log"