[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 2/3] So es kann nun mit GRUB2 ein CD Image erstellt werden.



From: Johannes Pfeiffer <johannes@pc-oben.(none)>

---
 build/config/grub2_cdrom.cfg         |   18 +++++++++---------
 build/config/grub_cdrom_eltorito.cfg |    2 +-
 build/scripts/grub2_cdrom            |   10 ++++++++++
 3 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/build/config/grub2_cdrom.cfg b/build/config/grub2_cdrom.cfg
index 1b034bd..5c0f82b 100644
--- a/build/config/grub2_cdrom.cfg
+++ b/build/config/grub2_cdrom.cfg
@@ -1,19 +1,19 @@
 #Boot timeout
-set timeout = 10
+timeout = 10
 
 #boote standardmä�ig die deutsche Version
-set default = 0
+default = 0
 
 #deutsche Version
 menuentry "Tyndur (Deutsch)" {
-	multiboot /boot/tyndur
-	module /modules/init
-	module /modules/pci
+	multiboot /boot/tyndur debug=s 
+	module /modules/init boot=file:/
 	module /modules/ata
+	module /modules/ext2
 	module /modules/iso9660
+	module /modules/pci
 	module /modules/ramoverlay
-	module /modules/ext2
-	module /modules/console
-	module /modules/servmgr
-boot
+	module /modules/console servmgr:/term servmgr:/term
+	module /modules/servmgr foo ata:/atapi10"|"iso9660:/ vterm:/vterm8/out ata iso9660 console pci ext2 ramoverlay
+	boot
 }
diff --git a/build/config/grub_cdrom_eltorito.cfg b/build/config/grub_cdrom_eltorito.cfg
index 259bd81..7128bea 100644
--- a/build/config/grub_cdrom_eltorito.cfg
+++ b/build/config/grub_cdrom_eltorito.cfg
@@ -13,5 +13,5 @@ module /MODULES/INIT boot=file:/ env.LANG=en
 module /MODULES/ATA
 module /MODULES/ISO9660
 module /MODULES/CONSOLE servmgr:/term servmgr:/term
-module /MODULES/SERVMGR ata:/atapi10|iso9660:/ vterm:/vterm8/out ata iso9660 console
+module /MODULES/SERVMGR ata:/atapi10 iso9660:/ vterm:/vterm8/out ata iso9660 console
 boot
diff --git a/build/scripts/grub2_cdrom b/build/scripts/grub2_cdrom
index 6fbb908..406b603 100755
--- a/build/scripts/grub2_cdrom
+++ b/build/scripts/grub2_cdrom
@@ -31,5 +31,15 @@
 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+#Konfigurationsdateien kopieren
 cp build/config/grub2_cdrom.cfg build/root/boot/grub/grub.cfg
+cp -r build/root-cdrom/config build/root/
+cp -r build/root-common/config build/root/
+
+#CD Image erstellen
 grub-mkrescue --output=build/images/grub2-cdrom-tyndur.iso build/root/
+
+#Konfigurationsdateien wieder löschen
+rm -r build/root/config
+#Nachricht für den Fall, dass xorriso nicht installiert ist
+echo "Falls es zu Error 127 während der Erstellung des CD-Images kommt, hilft es das Paket XORRISO zu installieren."
-- 
1.7.1