Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 211005 Details for
Bug 294268
sys-kernel/genkernel-3.4.10.904: a patch to let an iso boot via grub2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against sys-kernel/genkernel-3.4.10.904 to let it boot as iso via grub2
grub2-genkernel.patch (text/plain), 1.73 KB, created by
Andreas Schürch
on 2009-11-23 19:03:16 UTC
(
hide
)
Description:
patch against sys-kernel/genkernel-3.4.10.904 to let it boot as iso via grub2
Filename:
MIME Type:
Creator:
Andreas Schürch
Created:
2009-11-23 19:03:16 UTC
Size:
1.73 KB
patch
obsolete
>diff -rupN original-genkernel/defaults/initrd.scripts genkernel/defaults/initrd.scripts >--- original-genkernel/defaults/initrd.scripts 2009-11-23 19:46:15.000000000 +0100 >+++ genkernel/defaults/initrd.scripts 2009-11-23 19:49:02.000000000 +0100 >@@ -72,8 +72,15 @@ findmediamount() { > > if [ "$#" -gt "0" ] > then >- > [ ! -d "${mntdir}" ] && mkdir -p ${mntdir} 2>/dev/null >/dev/null >+ if [ ! -z ${ISOBOOT} ]; then >+ mntcddir="${mntdir%${media}}iso" >+ if [ ! -f ${mntcddir} ]; then >+ mkdir ${mntcddir} >+ fi >+ else >+ mntcddir=${mntdir} >+ fi > > for x in $* > do >@@ -104,9 +113,18 @@ findmediamount() { > # else > # mount -r -t auto ${x} ${mntdir} &>/dev/null > # fi >- mount -r -t ${CDROOT_TYPE} ${x} ${mntdir} >/dev/null 2>&1 >+ mount -r -t ${CDROOT_TYPE} ${x} ${mntcddir} >/dev/null 2>&1 > if [ "$?" = '0' ] > then >+ if [ ! -z ${ISOBOOT} ]; then >+ if [ -f ${mntcddir}/${ISOBOOT} ]; then >+ mount -o loop ${mntcddir}/${ISOBOOT} ${mntdir} >+ if [ "$?" = "0" ]; then >+ good_msg "iso mounted on ${mntdir}" >+ fi >+ fi >+ fi >+ > # Check for the media > if [ -f "${mntdir}/${recon}" ] > then >@@ -115,7 +133,7 @@ findmediamount() { > good_msg "Media found on ${x}" ${CRYPT_SILENT} > break > else >- umount ${mntdir} >+ umount ${mntcddir} > fi > fi > fi >diff -rupN original-genkernel/defaults/linuxrc genkernel/defaults/linuxrc >--- original-genkernel/defaults/linuxrc 2009-11-23 19:46:15.000000000 +0100 >+++ genkernel/defaults/linuxrc 2009-11-23 19:49:14.000000000 +0100 >@@ -80,6 +80,9 @@ do > looptype\=*) > LOOPTYPE=`parse_opt "${x}"` > ;; >+ isoboot\=*) >+ ISOBOOT=`parse_opt "${x}"` >+ ;; > # Start Volume manager options > dolvm) > USE_LVM_NORMAL=1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 294268
: 211005