Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=daaacb9f655a419ad0467f5d50cae738542eca58
commit daaacb9f655a419ad0467f5d50cae738542eca58
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Thu Oct 2 00:57:11 2008 +0200
implement mkbootmsg for yaboot
diff --git a/mkiso/menu.c b/mkiso/menu.c
index dacd12d..12d8168 100644
--- a/mkiso/menu.c
+++ b/mkiso/menu.c
@@ -64,3 +64,22 @@ char *mkmenu(volume_t *volume)
free(kernel);
return(flist);
}
+
+char *mkbootmsg(volume_t *volume)
+{
+ char *flist = strdup("/tmp/mkiso_XXXXXX");
+ FILE *fp;
+ char *kernel = detect_kernel(volume->arch);
+
+ mkstemp(flist);
+ if(!(fp = fopen(flist, "w")))
+ return(NULL);
+
+ fprintf(fp, "Frugalware %s (%s) - %s\n\n", fst_ver, fst_codename,
kernel);
+ fprintf(fp, "To boot the kernel, just hit enter, or use
'install'.\n\n");
+ fprintf(fp, "If the system fails to boot at all (the typical symptom is
a white screen which\n"
+ "doesn't go away), use 'install video=ofonly'.\n\n");
+ fclose(fp);
+ free(kernel);
+ return(flist);
+}
diff --git a/mkiso/menu.h b/mkiso/menu.h
index 86fc56e..642f6ca 100644
--- a/mkiso/menu.h
+++ b/mkiso/menu.h
@@ -1,7 +1,7 @@
/*
* menu.h
*
- * Copyright (c) 2006 by Miklos Vajna <[EMAIL PROTECTED]>
+ * Copyright (c) 2006, 2008 by Miklos Vajna <[EMAIL PROTECTED]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,3 +20,5 @@
*/
char *mkmenu(volume_t *volume);
+char *mkbootmsg(volume_t *volume);
+char *mkconf(volume_t *volume);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git