From 55b6bf3e3187a8454853805a955749044f043724 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 4 Mar 2018 14:53:46 +0000 Subject: Copy the release notes from the repository when building the root system. --- lib/MGA/DrakISO/BuildRoot.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm index d9bd2c4..3462603 100644 --- a/lib/MGA/DrakISO/BuildRoot.pm +++ b/lib/MGA/DrakISO/BuildRoot.pm @@ -177,6 +177,11 @@ sub install_live_system { run_in_root($chroot, $arch, 'sh', '-c', "$env $cmd") or die "ERROR: failed to install base system\n"; + # Add the release notes. + for (qw(release-notes.html release-notes.txt)) { + copy_file_to_root($live_root, '', 0644, $arch_repository . '/' . $_); + } + # Add a local repository if the user has requested it. build_local_repo($build); } catch { -- cgit v1.2.1