summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-25 13:31:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-25 13:31:33 +0000
commit639ed2a6846e629b3ace24145b6b0e332bb3df9f (patch)
tree61c7899db394e705c282a87a132ea6c98502a270 /make_boot_img
parent49bf705209543d419b229fe9a87e3065a1094d47 (diff)
downloaddrakx-backup-do-not-use-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar
drakx-backup-do-not-use-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar.gz
drakx-backup-do-not-use-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar.bz2
drakx-backup-do-not-use-639ed2a6846e629b3ace24145b6b0e332bb3df9f.tar.xz
drakx-backup-do-not-use-639ed2a6846e629b3ace24145b6b0e332bb3df9f.zip
factorize code in VERSION()
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img14
1 files changed, 10 insertions, 4 deletions
diff --git a/make_boot_img b/make_boot_img
index de1a4c341..3e3f1328e 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -697,6 +697,15 @@ rescue-net: boots the rescue image from a network server
}
+sub VERSION {
+ my ($kernels) = @_;
+
+ map { "$_\n" }
+ $ENV{DISTRIB_DESCR},
+ scalar gmtime(),
+ '', @$kernels;
+}
+
sub syslinux_all_files {
my ($dir, $kernels) = @_;
@@ -741,10 +750,7 @@ sub boot_iso {
syslinux_all_files('.boot_iso/isolinux', $kernels);
- output('.boot_iso/VERSION', map { "$_\n" }
- $ENV{DISTRIB_DESCR},
- scalar gmtime(),
- '', @$kernels);
+ output('.boot_iso/VERSION', VERSION($kernels));
_ "cp /usr/lib/syslinux/isolinux.bin .boot_iso/isolinux/isolinux.bin";
output('.boot_iso/isolinux/isolinux.cfg', syslinux_cfg_all('cdrom-changedisk'));