Skip to content

Commit e166532

Browse files
authored
Merge branch 'wukongdaily:master' into master
2 parents 9509c6e + f56fad0 commit e166532

13 files changed

Lines changed: 188 additions & 25 deletions

File tree

autobuild/autobuild.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
# 接受从AutoBuildImmortalWrt Action 过来的固件 制作为ISO
3+
mkdir -p imm
4+
RECEIVE_FILE="$1"
5+
filename=$(basename "$RECEIVE_FILE") # 提取文件名
6+
OUTPUT_PATH="imm/$filename"
7+
mv $RECEIVE_FILE $OUTPUT_PATH
8+
echo "保存路径: $OUTPUT_PATH"
9+
echo "✅ 验证文件类型!"
10+
file "$OUTPUT_PATH"
11+
12+
# 根据扩展名解压
13+
extension="${filename##*.}" # 获取文件扩展名
14+
case $extension in
15+
gz)
16+
echo "gz正在解压$OUTPUT_PATH"
17+
gunzip -f "$OUTPUT_PATH" || true
18+
final_name=$(find imm -name '*.img' -print -quit)
19+
mv "$final_name" "imm/custom.img"
20+
;;
21+
zip)
22+
echo "zip正在解压$OUTPUT_PATH"
23+
unzip -j -o "$OUTPUT_PATH" -d imm/ # -j 忽略目录结构
24+
final_name=$(find imm -name '*.img' -print -quit)
25+
mv "$final_name" "imm/custom.img"
26+
;;
27+
xz)
28+
echo "xz正在解压$OUTPUT_PATH"
29+
xz -d --keep "$OUTPUT_PATH" # 保留原文件
30+
final_name="${OUTPUT_PATH%.*}"
31+
mv "$final_name" "imm/custom.img"
32+
;;
33+
*)
34+
echo "❌ 不支持的压缩格式: $extension"
35+
exit 1
36+
;;
37+
esac
38+
39+
40+
# 检查最终文件
41+
if [ -f "imm/custom.img" ]; then
42+
echo "✅ 解压成功"
43+
ls -lh imm/
44+
echo "✅ 准备合成 自定义OpenWrt 安装器"
45+
else
46+
echo "❌ 错误:最终文件 imm/custom.img 不存在"
47+
exit 1
48+
fi
49+
50+
mkdir -p output
51+
docker run --privileged --rm \
52+
-v $(pwd)/output:/output \
53+
-v $(pwd)/supportFiles:/supportFiles:ro \
54+
-v $(pwd)/imm/custom.img:/mnt/custom.img \
55+
debian:buster \
56+
/supportFiles/custom/build.sh

autobuild/info.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[![Github](https://img.shields.io/badge/Release文件可在国内加速站下载-FC7C0D?logo=github&logoColor=fff&labelColor=000&style=for-the-badge)](https://wkdaily.cpolar.top/archives/1)
2+
3+
#### 格式ISO: 此文件是通过AutoBuildImmortalWrt项目构建的
4+
#### 适用范围:所有虚拟机和物理机通用 皆可引导 用于安装ImmortalWrt
5+
#### 使用方法:
6+
- 虚拟机使用:各种虚拟机直接选择iso 作为开机引导即可
7+
- 物理机使用:建议将iso放入ventoy的U盘中
8+
#### 运行ISO的中的debian live系统 大概10几秒后 输入命令 `ddd` 即可调用安装菜单
9+
<img width="50%" height="50%" alt="image" src="https://github.com/user-attachments/assets/b47821ed-dc1d-41b5-8a6e-814bf222a2f4" />
10+
11+
#### 安装后 默认情况 若没有更改 则固件信息如下
12+
- 用户名root 密码 无
13+
- 该固件刷入【单网口设备】默认采用DHCP模式,自动获得ip。类似NAS的做法 可在上一级路由器查询,若是虚拟机则输入 `ip a` 查看
14+
- 该固件刷入【多网口设备】默认WAN口采用DHCP模式,LAN 口ip为 `192.168.100.1 `其中eth0为WAN 其余网口均为LAN
15+
#### 为什么这样设计
16+
- 因为很多人在第一次刷入固件后 都做了很多重复的工作 要编辑`/etc/config/network` 不适合手残党和新手。而且我觉得每次这样修改有点傻 千年不变的糟糕用户体验要变一变 为什么不去web页面里修改呢 有界面操作更简单啊
17+
- 【单网口】设备直接就是自动获得ip 则不需要你每次都在命令行里修改了。尤其在虚拟机里,ip a 就能查看ip 用此ip就能访问。web页面在修改任何东西 都很简单了。尤其旁路用户 进web页再设置
18+
- 【多网口】设备用 192.168.100.1 访问web ui

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ else
1717
FILE_NAME="Armbian_25.2.1_Uefi-x86_noble_current_6.12.13.img.xz"
1818
fi
1919

20-
REPO="wukongdaily/armbian-installer"
20+
REPO="wukongdaily/img-installer"
2121
TAG="2025-03-12"
2222
OUTPUT_PATH="armbian/armbian.img.xz"
2323

custom.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ fi
6464

6565
mkdir -p output
6666
docker run --privileged --rm \
67-
-v $(pwd)/output:/output \
68-
-v $(pwd)/supportFiles:/supportFiles:ro \
69-
-v $(pwd)/imm/custom.img:/mnt/custom.img \
70-
debian:buster \
71-
/supportFiles/custom/build.sh
67+
-v $(pwd)/output:/output \
68+
-v $(pwd)/supportFiles:/supportFiles:ro \
69+
-v $(pwd)/imm/custom.img:/mnt/custom.img \
70+
debian:buster \
71+
/supportFiles/custom/build.sh

supportFiles/build.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/bin/bash
22
# Based from https://willhaley.com/blog/custom-debian-live-environment/
3+
set -e
34

5+
echo "🔧 修复 buster 的源..."
6+
7+
cat > /etc/apt/sources.list <<EOF
8+
deb http://archive.debian.org/debian buster main contrib non-free
9+
deb http://archive.debian.org/debian-security buster/updates main
10+
EOF
11+
12+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
13+
14+
apt-get update
15+
16+
echo "🚀 开始执行 build.sh ..."
417
echo Install required tools
518
apt-get update
619
apt-get -y install debootstrap squashfs-tools xorriso isolinux syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools parted
@@ -9,8 +22,7 @@ echo Create directory where we will make the image
922
mkdir -p $HOME/LIVE_BOOT
1023

1124
echo Install Debian
12-
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://ftp.us.debian.org/debian/
13-
25+
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://archive.debian.org/debian/
1426
echo Copy supporting documents into the chroot
1527
cp -v /supportFiles/installChroot.sh $HOME/LIVE_BOOT/chroot/installChroot.sh
1628
cp -v /supportFiles/ddd $HOME/LIVE_BOOT/chroot/usr/bin/ddd
@@ -47,7 +59,6 @@ echo Create directories that will contain files for our live environment files a
4759
mkdir -p $HOME/LIVE_BOOT/{staging/{EFI/boot,boot/grub/x86_64-efi,isolinux,live},tmp}
4860

4961
echo Compress the chroot environment into a Squash filesystem.
50-
sgdisk --move-second-header "/mnt/armbian.img"
5162
cp /mnt/armbian.img ${HOME}/LIVE_BOOT/chroot/mnt/
5263
ls ${HOME}/LIVE_BOOT/chroot/mnt/
5364
mksquashfs $HOME/LIVE_BOOT/chroot $HOME/LIVE_BOOT/staging/live/filesystem.squashfs -e boot

supportFiles/custom/build.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#!/bin/bash
22
# Based from https://willhaley.com/blog/custom-debian-live-environment/
33

4+
set -e
5+
6+
echo "🔧 修复 buster 的源..."
7+
8+
cat > /etc/apt/sources.list <<EOF
9+
deb http://archive.debian.org/debian buster main contrib non-free
10+
deb http://archive.debian.org/debian-security buster/updates main
11+
EOF
12+
13+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
14+
15+
apt-get update
16+
17+
echo "🚀 开始执行 build.sh ..."
18+
419
echo Install required tools
520
apt-get update
621
apt-get -y install debootstrap squashfs-tools xorriso isolinux syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools parted
@@ -9,7 +24,7 @@ echo Create directory where we will make the image
924
mkdir -p $HOME/LIVE_BOOT
1025

1126
echo Install Debian
12-
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://ftp.us.debian.org/debian/
27+
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://archive.debian.org/debian/
1328

1429
echo Copy supporting documents into the chroot
1530
cp -v /supportFiles/installChroot.sh $HOME/LIVE_BOOT/chroot/installChroot.sh

supportFiles/esirplayground/build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/bin/bash
22
# Based from https://willhaley.com/blog/custom-debian-live-environment/
3+
set -e
34

5+
echo "🔧 修复 buster 的源..."
6+
7+
cat > /etc/apt/sources.list <<EOF
8+
deb http://archive.debian.org/debian buster main contrib non-free
9+
deb http://archive.debian.org/debian-security buster/updates main
10+
EOF
11+
12+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
13+
14+
apt-get update
15+
16+
echo "🚀 开始执行 build.sh ..."
417
echo Install required tools
518
apt-get update
619
apt-get -y install debootstrap squashfs-tools xorriso isolinux syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools parted
@@ -9,7 +22,7 @@ echo Create directory where we will make the image
922
mkdir -p $HOME/LIVE_BOOT
1023

1124
echo Install Debian
12-
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://ftp.us.debian.org/debian/
25+
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://archive.debian.org/debian/
1326

1427
echo Copy supporting documents into the chroot
1528
cp -v /supportFiles/installChroot.sh $HOME/LIVE_BOOT/chroot/installChroot.sh

supportFiles/ezopwrt/build.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/bin/bash
22
# Based from https://willhaley.com/blog/custom-debian-live-environment/
3+
set -e
34

5+
echo "🔧 修复 buster 的源..."
6+
7+
cat > /etc/apt/sources.list <<EOF
8+
deb http://archive.debian.org/debian buster main contrib non-free
9+
deb http://archive.debian.org/debian-security buster/updates main
10+
EOF
11+
12+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
13+
14+
apt-get update
15+
16+
echo "🚀 开始执行 build.sh ..."
417
echo Install required tools
518
apt-get update
619
apt-get -y install debootstrap squashfs-tools xorriso isolinux syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools parted
@@ -9,8 +22,7 @@ echo Create directory where we will make the image
922
mkdir -p $HOME/LIVE_BOOT
1023

1124
echo Install Debian
12-
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://ftp.us.debian.org/debian/
13-
25+
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://archive.debian.org/debian/
1426
echo Copy supporting documents into the chroot
1527
cp -v /supportFiles/installChroot.sh $HOME/LIVE_BOOT/chroot/installChroot.sh
1628
cp -v /supportFiles/ezopwrt/ddd $HOME/LIVE_BOOT/chroot/usr/bin/ddd

supportFiles/haos/build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/bin/bash
22
# Based from https://willhaley.com/blog/custom-debian-live-environment/
3+
set -e
34

5+
echo "🔧 修复 buster 的源..."
6+
7+
cat > /etc/apt/sources.list <<EOF
8+
deb http://archive.debian.org/debian buster main contrib non-free
9+
deb http://archive.debian.org/debian-security buster/updates main
10+
EOF
11+
12+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
13+
14+
apt-get update
15+
16+
echo "🚀 开始执行 build.sh ..."
417
echo Install required tools
518
apt-get update
619
apt-get -y install debootstrap squashfs-tools xorriso isolinux syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools parted
@@ -9,7 +22,7 @@ echo Create directory where we will make the image
922
mkdir -p $HOME/LIVE_BOOT
1023

1124
echo Install Debian
12-
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://ftp.us.debian.org/debian/
25+
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://archive.debian.org/debian/
1326

1427
echo Copy supporting documents into the chroot
1528
cp -v /supportFiles/installChroot.sh $HOME/LIVE_BOOT/chroot/installChroot.sh

supportFiles/immortalwrt/build.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#!/bin/bash
22
# Based from https://willhaley.com/blog/custom-debian-live-environment/
33

4+
set -e
5+
6+
echo "🔧 修复 buster 的源..."
7+
8+
cat > /etc/apt/sources.list <<EOF
9+
deb http://archive.debian.org/debian buster main contrib non-free
10+
deb http://archive.debian.org/debian-security buster/updates main
11+
EOF
12+
13+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
14+
15+
apt-get update
16+
17+
echo "🚀 开始执行 build.sh ..."
18+
419
echo Install required tools
520
apt-get update
621
apt-get -y install debootstrap squashfs-tools xorriso isolinux syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools parted
@@ -9,7 +24,7 @@ echo Create directory where we will make the image
924
mkdir -p $HOME/LIVE_BOOT
1025

1126
echo Install Debian
12-
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://ftp.us.debian.org/debian/
27+
debootstrap --arch=amd64 --variant=minbase buster $HOME/LIVE_BOOT/chroot http://archive.debian.org/debian/
1328

1429
echo Copy supporting documents into the chroot
1530
cp -v /supportFiles/installChroot.sh $HOME/LIVE_BOOT/chroot/installChroot.sh

0 commit comments

Comments
 (0)