Skip to content

Commit 2b97c80

Browse files
committed
Merge branch 'isofs' into dev
2 parents 6fc3d8b + 9b4a7da commit 2b97c80

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,21 @@ make_prepare() {
12261226
fi
12271227
}
12281228

1229+
# Add files to the root of isofs
1230+
make_overisofs() {
1231+
local _copy_isofs
1232+
1233+
_copy_isofs() {
1234+
local _dir="${1%/}"
1235+
if [[ -d "${_dir}" ]]; then cp -af "${_dir}"/* "${isofs_dir}"; fi
1236+
}
1237+
1238+
_copy_isofs "${script_path}/channels/share/over_isofs.any"
1239+
_copy_isofs "${script_path}/channels/share/over_isofs.${arch}"
1240+
_copy_isofs "${channel_dir}/over_isofs.any"
1241+
_copy_isofs "${channel_dir}/over_isofs.${arch}"
1242+
}
1243+
12291244
# Build ISO
12301245
make_iso() {
12311246
${mkalteriso} ${mkalteriso_option} -w "${work_dir}" -D "${install_dir}" -L "${iso_label}" -P "${iso_publisher}" -A "${iso_application}" -o "${out_dir}" iso "${iso_filename}"
@@ -1540,6 +1555,7 @@ if [[ "${noiso}" = false ]]; then
15401555
run_once make_boot
15411556
run_once make_prepare
15421557
run_once make_boot_extra
1558+
run_once make_overisofs
15431559
if [[ "${noefi}" = false ]]; then
15441560
run_once make_efi
15451561
run_once make_efiboot

docs/en/CHANNEL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,9 @@ Please do not define any local variables in the script. The definition of global
166166
## architecture
167167

168168
A list of architectures available on that channel. `#` Is treated as a comment.
169+
170+
## over_isofs
171+
172+
Files in iso filesystem will be overwritten by all files of `over_isofs`
173+
Similar to airootfs, but over_isofs allows you to work directly with the files in the built image file.
174+
Please note that if you overwrite the existing file, you may not be able to boot.

docs/jp/CHANNEL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,7 @@ rt
224224
## README
225225
チャンネルの詳細を書いたテキストファイルです。ビルドには一切影響されませんが、GitHub上で見た際に表示されるので、簡単なガイドの役割を果たします。作成しておいて損はないでしょう。
226226

227+
## over_isofs
228+
`over_isofs`ディレクトリ内でビルドされるISOファイルの`/`にファイルを上書きします。
229+
`airootfs`と似ていますが`over_isofs`ではビルドされるイメージファイル内のファイルを直接操作することができます。
230+
既存のファイルを上書きしてしまうとブートできなくなる可能性があるので注意して下さい。

0 commit comments

Comments
 (0)