mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-14 08:01:25 +00:00
move openwrt additional files
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user