File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff 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
12301245make_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
Original file line number Diff line number Diff line change @@ -166,3 +166,9 @@ Please do not define any local variables in the script. The definition of global
166166## architecture
167167
168168A 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.
Original file line number Diff line number Diff line change 224224## README
225225チャンネルの詳細を書いたテキストファイルです。ビルドには一切影響されませんが、GitHub上で見た際に表示されるので、簡単なガイドの役割を果たします。作成しておいて損はないでしょう。
226226
227+ ## over_isofs
228+ ` over_isofs ` ディレクトリ内でビルドされるISOファイルの` / ` にファイルを上書きします。
229+ ` airootfs ` と似ていますが` over_isofs ` ではビルドされるイメージファイル内のファイルを直接操作することができます。
230+ 既存のファイルを上書きしてしまうとブートできなくなる可能性があるので注意して下さい。
You can’t perform that action at this time.
0 commit comments