move openwrt additional files

This commit is contained in:
Albrecht Lohofener
2024-01-31 08:10:51 +01:00
parent 79679dbbe7
commit 59e40648d0
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ RUN mkdir /var/vm \
COPY ./src /run/
COPY ./web /var/www/
COPY ./openwrt_additional /var/vm/
COPY ./openwrt_additional /var/vm/openwrt_additional
RUN chmod +x /run/*.sh
RUN mv /var/www/nginx.conf /etc/nginx/http.d/web.conf
+4 -2
View File
@@ -55,9 +55,11 @@ else
cp /var/vm/rootfs.img.gz /storage/rootfs.img.gz
gzip -d /storage/rootfs.img.gz
info "Copy some additional files into the image"
info "Inject some additional files into the image"
mount /storage/rootfs.img /mnt
cp /var/vm/* /mnt/root
# mount -o offset=$((512*262656)) /storage/disk.img /mnt # combined image ext4 partition starts at offset 262656
chmod +x /var/vm/openwrt_additional/bin/*
cp /var/vm/openwrt_additional/bin/* /mnt/usr/bin/
umount /mnt
fi