mirror of
https://github.com/linuxboot/heads.git
synced 2025-06-24 02:04:08 +00:00
There was an issue where initrd_tmp_dir was used to create tools.cpio and wipe that dir, while data.cpio was subdirectory of initrd_tmp_dir. This seperates tools.cpio temp dir from data.cpio temp dir: - tools.cpio: initrd_tmp_dir/tools/{bin,lib} - data.cpio: initrd_tmp_dir/data So that when wiping happens of a subdir, this doesn't affect others: - initrd_tmp_dir = mktemp -d - initrd_tools_dir = initrd_tmp_dir/tools - initrd_bin_dir = initrd_tools_dir/bin - initrd_lib_dir = initrd_tools_dir/lib - initrd_data_dir = initrd_tmp_dir/data This commit: - Use proper variable names everywhere, no more initrd_tmp_dir. - initrd_tools_dir, initrd_lib_dir, initrd_bin_dir, initrd_data_dir - change to busybox (initrd_tmp_dir/bin -> initrd_bin_dir) as well and review all other modules Signed-off-by: Thierry Laurion <insurgo@riseup.net>