Jump to content











Photo
- - - - -

Install Windows 10 from iso with wimboot


Best Answer nierewa , 05 July 2019 - 11:05 AM

Many thanks to you Steve.
I would never have managed that alone.
You are the best of all     :worship:

 

   :yahoo:   :party_time:      :cheers:

Go to the full post


  • Please log in to reply
72 replies to this topic

#51 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 04 July 2019 - 10:36 AM

I use UEFI-Boot. Grub2 only used for UEFI.
Same problem:

...

Load --pause... Please wait

... ENTER

 

black dots an nothing else.

 

I don't know how to attache files so here's an overview of the content from the two partitions of USB Stick, so its not easy to read.
Sorry for that :blush:
Maybe you can see a mistake.

 

Partition 1:

Verzeichnisinhalt von I:\:

    I:\
        .disk
            info
            keep_this_directory
        AIO
            grub
                fonts
                    DejaVuSansMono-large.pf2
                    unicode-large.pf2
                    unicode-small.pf2
                i386-efi
                    acpi.mod
                    adler32.mod
                    affs.mod
                    afs.mod
                    ahci.mod
                    all_video.mod
                    aout.mod
                    appleldr.mod
                    archelp.mod
                    at_keyboard.mod
                    ata.mod
                    backtrace.mod
                    bfs.mod
                    bitmap_scale.mod
                    bitmap.mod
                    blocklist.mod
                    boot.mod
                    bsd.mod
                    bswap_test.mod
                    btrfs.mod
                    bufio.mod
                    cat.mod
                    cbfs.mod
                    cbls.mod
                    cbmemc.mod
                    cbtable.mod
                    cbtime.mod
                    chain.mod
                    cmdline_cat_test.mod
                    cmp_test.mod
                    cmp.mod
                    command.lst
                    configfile.mod
                    cpio_be.mod
                    cpio.mod
                    cpuid.mod
                    crc64.mod
                    crypto.lst
                    crypto.mod
                    cryptodisk.mod
                    cs5536.mod
                    ctz_test.mod
                    date.mod
                    datehook.mod
                    datetime.mod
                    disk.mod
                    diskfilter.mod
                    div_test.mod
                    div.mod
                    dm_nv.mod
                    echo.mod
                    efi_gop.mod
                    efi_uga.mod
                    efifwsetup.mod
                    efinet.mod
                    ehci.mod
                    elf.mod
                    eval.mod
                    exfat.mod
                    exfctest.mod
                    ext2.mod
                    extcmd.mod
                    f2fs.mod
                    fat.mod
                    file.mod
                    fixvideo.mod
                    font.mod
                    fs.lst
                    fshelp.mod
                    functional_test.mod
                    gcry_arcfour.mod
                    gcry_blowfish.mod
                    gcry_camellia.mod
                    gcry_cast5.mod
                    gcry_crc.mod
                    gcry_des.mod
                    gcry_dsa.mod
                    gcry_idea.mod
                    gcry_md4.mod
                    gcry_md5.mod
                    gcry_rfc2268.mod
                    gcry_rijndael.mod
                    gcry_rmd160.mod
                    gcry_rsa.mod
                    gcry_seed.mod
                    gcry_serpent.mod
                    gcry_sha1.mod
                    gcry_sha256.mod
                    gcry_sha512.mod
                    gcry_tiger.mod
                    gcry_twofish.mod
                    gcry_whirlpool.mod
                    gdb.mod
                    geli.mod
                    gettext.mod
                    gfxmenu.mod
                    gfxterm_background.mod
                    gfxterm_menu.mod
                    gfxterm.mod
                    gptsync.mod
                    gzio.mod
                    halt.mod
                    hashsum.mod
                    hdparm.mod
                    hello.mod
                    help.mod
                    hexdump.mod
                    hfs.mod
                    hfsplus.mod
                    hfspluscomp.mod
                    http.mod
                    iorw.mod
                    iso9660.mod
                    jfs.mod
                    jpeg.mod
                    keylayouts.mod
                    keystatus.mod
                    ldm.mod
                    legacy_password_test.mod
                    legacycfg.mod
                    linux.mod
                    linux16.mod
                    loadbios.mod
                    loadenv.mod
                    loopback.mod
                    ls.mod
                    lsacpi.mod
                    lsefi.mod
                    lsefimmap.mod
                    lsefisystab.mod
                    lsmmap.mod
                    lspci.mod
                    lssal.mod
                    lua.mod
                    luks.mod
                    lvm.mod
                    lzopio.mod
                    macbless.mod
                    macho.mod
                    mdraid09_be.mod
                    mdraid09.mod
                    mdraid1x.mod
                    memdisk.mod
                    memrw.mod
                    minicmd.mod
                    minix_be.mod
                    minix.mod
                    minix2_be.mod
                    minix2.mod
                    minix3_be.mod
                    minix3.mod
                    mmap.mod
                    moddep.lst
                    modinfo.sh
                    morse.mod
                    mpi.mod
                    msdospart.mod
                    mul_test.mod
                    multiboot.mod
                    multiboot2.mod
                    nativedisk.mod
                    net.mod
                    newc.mod
                    nilfs2.mod
                    normal.mod
                    ntfs.mod
                    ntfscomp.mod
                    odc.mod
                    offsetio.mod
                    ohci.mod
                    part_acorn.mod
                    part_amiga.mod
                    part_apple.mod
                    part_bsd.mod
                    part_dfly.mod
                    part_dvh.mod
                    part_gpt.mod
                    part_msdos.mod
                    part_plan.mod
                    part_sun.mod
                    part_sunpc.mod
                    partmap.lst
                    parttool.lst
                    parttool.mod
                    password_pbkdf2.mod
                    password.mod
                    pata.mod
                    pbkdf2_test.mod
                    pbkdf2.mod
                    pcidump.mod
                    play.mod
                    png.mod
                    priority_queue.mod
                    probe.mod
                    procfs.mod
                    progress.mod
                    raid5rec.mod
                    raid6rec.mod
                    random.mod
                    read.mod
                    reboot.mod
                    regexp.mod
                    reiserfs.mod
                    relocator.mod
                    romfs.mod
                    scsi.mod
                    search_fs_file.mod
                    search_fs_uuid.mod
                    search_label.mod
                    search.mod
                    serial.mod
                    setjmp_test.mod
                    setjmp.mod
                    setpci.mod
                    sfs.mod
                    shift_test.mod
                    signature_test.mod
                    sleep_test.mod
                    sleep.mod
                    spkmodem.mod
                    squash4.mod
                    strtoull_test.mod
                    syslinuxcfg.mod
                    tar.mod
                    terminal.lst
                    terminal.mod
                    terminfo.mod
                    test_blockarg.mod
                    test.mod
                    testload.mod
                    testspeed.mod
                    tftp.mod
                    tga.mod
                    time.mod
                    tr.mod
                    trig.mod
                    true.mod
                    udf.mod
                    ufs1_be.mod
                    ufs1.mod
                    ufs2.mod
                    uhci.mod
                    usb_keyboard.mod
                    usb.mod
                    usbms.mod
                    usbserial_common.mod
                    usbserial_ftdi.mod
                    usbserial_pl2303.mod
                    usbserial_usbdebug.mod
                    usbtest.mod
                    verify.mod
                    video_bochs.mod
                    video_cirrus.mod
                    video_colors.mod
                    video_fb.mod
                    video.lst
                    video.mod
                    videoinfo.mod
                    videotest_checksum.mod
                    videotest.mod
                    wimboot.mod
                    xfs.mod
                    xnu_uuid_test.mod
                    xnu_uuid.mod
                    xnu.mod
                    xzio.mod
                    zfs.mod
                    zfscrypt.mod
                    zfsinfo.mod
                i386-pc
                    915resolution.mod
                    acpi.mod
                    adler32.mod
                    affs.mod
                    afs.mod
                    ahci.mod
                    all_video.mod
                    aout.mod
                    archelp.mod
                    at_keyboard.mod
                    ata.mod
                    backtrace.mod
                    bfs.mod
                    bitmap_scale.mod
                    bitmap.mod
                    blocklist.mod
                    boot.img
                    boot.mod
                    bsd.mod
                    bswap_test.mod
                    btrfs.mod
                    bufio.mod
                    cat.mod
                    cbfs.mod
                    cbls.mod
                    cbmemc.mod
                    cbtable.mod
                    cbtime.mod
                    chain.mod
                    cmdline_cat_test.mod
                    cmosdump.mod
                    cmostest.mod
                    cmp_test.mod
                    cmp.mod
                    command.lst
                    configfile.mod
                    core.img
                    cpio_be.mod
                    cpio.mod
                    cpuid.mod
                    crc64.mod
                    crypto.lst
                    crypto.mod
                    cryptodisk.mod
                    cs5536.mod
                    ctz_test.mod
                    date.mod
                    datehook.mod
                    datetime.mod
                    disk.mod
                    diskfilter.mod
                    div_test.mod
                    div.mod
                    dm_nv.mod
                    drivemap.mod
                    echo.mod
                    efiemu.mod
                    efiemu32.o
                    efiemu64.o
                    ehci.mod
                    elf.mod
                    eltorito.img
                    eval.mod
                    exfctest.mod
                    extcmd.mod
                    f2fs.mod
                    file.mod
                    font.mod
                    freedos.mod
                    fs.lst
                    fshelp.mod
                    functional_test.mod
                    gcry_arcfour.mod
                    gcry_blowfish.mod
                    gcry_camellia.mod
                    gcry_cast5.mod
                    gcry_crc.mod
                    gcry_des.mod
                    gcry_dsa.mod
                    gcry_idea.mod
                    gcry_md4.mod
                    gcry_md5.mod
                    gcry_rfc2268.mod
                    gcry_rijndael.mod
                    gcry_rmd160.mod
                    gcry_rsa.mod
                    gcry_seed.mod
                    gcry_serpent.mod
                    gcry_sha1.mod
                    gcry_sha256.mod
                    gcry_sha512.mod
                    gcry_tiger.mod
                    gcry_twofish.mod
                    gcry_whirlpool.mod
                    gdb.mod
                    geli.mod
                    gettext.mod
                    gfxmenu.mod
                    gfxterm_background.mod
                    gfxterm_menu.mod
                    gfxterm.mod
                    gptsync.mod
                    gzio.mod
                    halt.mod
                    hashsum.mod
                    hdparm.mod
                    hello.mod
                    help.mod
                    hexdump.mod
                    hfs.mod
                    hfsplus.mod
                    hfspluscomp.mod
                    http.mod
                    iorw.mod
                    iso9660.mod
                    jfs.mod
                    jpeg.mod
                    keylayouts.mod
                    keystatus.mod
                    ldm.mod
                    legacy_password_test.mod
                    legacycfg.mod
                    linux.mod
                    linux16.mod
                    loadenv.mod
                    loopback.mod
                    ls.mod
                    lsacpi.mod
                    lsapm.mod
                    lsmmap.mod
                    lspci.mod
                    lua.mod
                    luks.mod
                    lvm.mod
                    lzopio.mod
                    macbless.mod
                    macho.mod
                    mda_text.mod
                    mdraid09_be.mod
                    mdraid09.mod
                    mdraid1x.mod
                    memdisk.mod
                    memrw.mod
                    minicmd.mod
                    minix_be.mod
                    minix.mod
                    minix2_be.mod
                    minix2.mod
                    minix3_be.mod
                    minix3.mod
                    mmap.mod
                    moddep.lst
                    modinfo.sh
                    morse.mod
                    mpi.mod
                    msdospart.mod
                    mul_test.mod
                    multiboot.mod
                    multiboot2.mod
                    nativedisk.mod
                    net.mod
                    newc.mod
                    nilfs2.mod
                    normal.mod
                    ntldr.mod
                    odc.mod
                    offsetio.mod
                    ohci.mod
                    part_acorn.mod
                    part_amiga.mod
                    part_apple.mod
                    part_bsd.mod
                    part_dfly.mod
                    part_dvh.mod
                    part_plan.mod
                    part_sun.mod
                    part_sunpc.mod
                    partmap.lst
                    parttool.lst
                    parttool.mod
                    password_pbkdf2.mod
                    password.mod
                    pata.mod
                    pbkdf2_test.mod

					
					

#52 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 10:54 AM

Try going to the grub2 command line  (press c)

 

and then type in the  loop and wimboot commands.

 

you only need to specify the boot.wim file  just to test  (if it works you will get a BCD missing error).

 

 

 

report back exactly what you see...

Attached Thumbnails

  • wimboot_test.JPG


#53 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 11:08 AM

I don't quite understand how you are booting to grub2?

You seem to have the AIO install files not the E2B grub2 files.

 

Have you updated to \EFI\boot\bootx64.efi (27/05/2019) and grubx64.efi (1/7/2019) ???

If so they should load \boot\grub\grub.cfg  - but I dont think you have that file so how can you be getting a menu?

 

Are you sure you are loading the correct EFI version of grub2??



#54 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 04 July 2019 - 12:06 PM

A screenshot what happend when I type in the  loop and wimboot commands:

 

wimboot.jpg

 

I found something out.
By default Grub2 uses the menu: AIO/menu/main.cfg

When I replaced the grubx64.efi (version 11/7/2018 with 1/7/2019) file in the EFI/BOOT folder,
the menu boot/grub/grub.cfg is used instead. The following entry boot up

 

I did this replacement many times before with the same file but this happend first time :confused1:

menuentry "${filenamex} EFI" {
  loopback loop (hd0,2)/images/Win10_1903_x64.iso
  set pp=(loop)/sources/boot.wim

#NOTE: ORDER IS IMPORTANT! May get 0xC000000f error if order is wrong!
  wimboot \
  @:startup.bat:(hd0,2)/wimboot/startup.bat \
  @:winpeshl.ini:(hd0,2)/wimboot/winpeshl.ini \
  @:$filename.tag:(loop)/efi/microsoft/boot/bcd \
  @:boot.wim:(loop)/sources/boot.wim \
  @:bootmgfw.efi:(loop)/efi/boot/bootx64.efi \
  @:bcd:(loop)/efi/microsoft/boot/bcd  \
  @:boot.sdi:(loop)/boot/boot.sdi
  drivemap -s hd0 hd1
  boot
 }

with following error

Invalid_ISO.jpg


Edited by nierewa, 04 July 2019 - 12:10 PM.


#55 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 12:12 PM

As I thought!  You weren't using the correct grub2!

 

Now it is working.

 

But you need to change your menu - See Tutorial 145  because startup.bat no longer uses the .tag file - it now uses the null.cfg file.

set installiso="${ip}/${isoname}"
save_env -f /wimboot/null.cfg installiso
  cat /wimboot/null.cfg
  read
#NOTE: ORDER IS IMPORTANT! May get 0xC000000f error if order is wrong or wrong bootmg!
#use wimboot --pause to see any error ( also --rawbcd --rawwim --index=1 --gui )
#enclose in "" if name\path contains spaces
#allow wimboot to find bootmg file (usually works better)
  wimboot --pause \
  @:"startup.bat":"/wimboot/startup.bat" \
  @:"winpeshl.ini":"/wimboot/winpeshl.ini" \
  @:"null.cfg":"/wimboot/null.cfg" \
  @:"boot.wim":"(loop)${pp}/sources/boot.wim" \
#  @:"bootmgfw.efi":"(loop)${pp}/efi/boot/$bootmg" \
  @:"bcd":"(loop)${pp}/efi/microsoft/boot/bcd"  \
  @:"boot.sdi":"(loop)${pp}/boot/boot.sdi"
  boot
}

here is my menu

you must set installiso to the path and name of the iso  (e.g. /_ISO/WINDOWS/WIN10/xxxxxxxxx.iso)  it can contain forward slashes for folders.



#56 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 04 July 2019 - 12:39 PM

I dobn't mind why this not happend any time before..?

 

I changed the entry according to my structure to following:

set installiso="(hd0,2)/images/win10_1903_x64.iso"
save_env -f (hd0,2)/wimboot/null.cfg installiso
  cat (hd0,2)/wimboot/null.cfg
  read
#NOTE: ORDER IS IMPORTANT! May get 0xC000000f error if order is wrong or wrong bootmg!
#use wimboot --pause to see any error ( also --rawbcd --rawwim --index=1 --gui )
#enclose in "" if name\path contains spaces
#allow wimboot to find bootmg file (usually works better)
  wimboot --pause \
  @:"startup.bat":"(hd0,2)/wimboot/startup.bat" \
  @:"winpeshl.ini":"(hd0,2)/wimboot/winpeshl.ini" \
  @:"null.cfg":"(hd0,2)/wimboot/null.cfg" \
  @:"boot.wim":"(loop)/sources/boot.wim" \
#  @:"bootmgfw.efi":"(loop)/efi/boot/$bootmg" \
  @:"bcd":"(loop)/efi/microsoft/boot/bcd"  \
  @:"boot.sdi":"(loop)/boot/boot.sdi"
  boot
}

get this error:

file 1: startup.bat path: (hd0,2)/wimboot/startup.bat
file 2: winpeshl.ini path: (hd0,2)/wimboot/ winpeshl.ini
file 3: null.cfg path: (hd0,2)/wimboot/null.cfg
error: no server is specified.
error: you need to load the kernel first.

Press any key to continue...


#57 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 12:39 PM

you need to use loop and load the ISO first, obviously !!! Add this first

loopback loop (hd0,msdos2)/images/Win10_1903_x64.iso

Also your line is wrong - I gave you an example!!! You have...

set installiso="(hd0,2)/images/win10_1903_x64.iso"

it should be:

set installiso="/images/win10_1903_x64.iso"


#58 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 04 July 2019 - 12:47 PM

Upps... sorry :wub:

 

Now it it:

loopback loop (hd0,msdos2)/images/Win10_1903_x64.iso
set installiso="(hd0,2)/images/win10_1903_x64.iso"
save_env -f (hd0,2)/wimboot/null.cfg installiso
cat (hd0,2)/wimboot/null.cfg
read
#NOTE: ORDER IS IMPORTANT! May get 0xC000000f error if order is wrong or wrong bootmg!
#use wimboot --pause to see any error ( also --rawbcd --rawwim --index=1 --gui )
#enclose in "" if name\path contains spaces
#allow wimboot to find bootmg file (usually works better)
wimboot --pause \
@:"startup.bat":"(hd0,2)/wimboot/startup.bat" \
@:"winpeshl.ini":"(hd0,2)/wimboot/winpeshl.ini" \
@:"null.cfg":"(hd0,2)/wimboot/null.cfg" \
@:"boot.wim":"(loop)/sources/boot.wim" \
# @:"bootmgfw.efi":"(loop)/efi/boot/$bootmg" \
@:"bcd":"(loop)/efi/microsoft/boot/bcd" \
@:"boot.sdi":"(loop)/boot/boot.sdi"
boot
}

error is:

Found USB DRIVE AT DRIVE G:
Looking for X:\Windows\System32\null.cfg contents...
#GRUB Enviroment Block
installiso=(hd0,2)/images/Win10_1903_x64.iso
#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
####ERROR: Can't find G:INVALID_ISO_NAME.ISO

Have I have to change null.cfg or startup.bat?


Edited by nierewa, 04 July 2019 - 12:51 PM.


#59 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 12:48 PM

See previous post!!


  • nierewa likes this

#60 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 04 July 2019 - 01:08 PM

It works now :hyper:

I love you man.

 

There's just one thing to do...

 

The main.cfg looks like this

### Start WinPE
if [ -n "$pc" ]; then
if [ -f /AIO/Menu/WinLegacy ]; then
menuentry "[p] WinPE & Setup" --hotkey=p {
	WinLegacy
}
fi
elif [ [ "${grub_cpu}" == "x86_64" ] -a [ -f /EFI/Microsoft/Boot/BCD ] ]	\
-o	\
[ [ "${grub_cpu}" == "i386" ] -a [ -f /EFI/Microsoft/Boot/B86 ] ] ; then
menuentry "[p] WinPE & Setup" --hotkey=p {
	WinUEFI
}
fi
### End WinPE
### Start \AIO\Menu\Linux.cfg
menuentry "[3] Linux OS" --hotkey=3 {
	configfile /AIO/Menu/Linux.cfg
}
### End \AIO\Menu\Linux.cfg
### Start \AIO\Menu\Antivirus.cfg
menuentry "[4] ${av}" --hotkey=4 {
	configfile /AIO/Menu/Antivirus.cfg
}
### End \AIO\Menu\Antivirus.cfg
### Start \AIO\Menu\Dos.cfg
menuentry "[5] ${dos}" --hotkey=5 {
	configfile /AIO/Menu/Dos.cfg
}
### End \AIO\Menu\Dos.cfg
### Start \AIO\Menu\BackupRecovery.cfg
menuentry "[2] ${br}" --hotkey=2 {
	configfile /AIO/Menu/BackupRecovery.cfg
}
### End \AIO\Menu\BackupRecovery.cfg

I add this entries to grub.cfg and it work but not the first entry the  ### Start WinPE block.
Nothing happens when I hit ENTER.



#61 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 01:35 PM

What is 'WinUEFI'  - is it some magic command?



#62 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 04 July 2019 - 01:51 PM

This my friend is the question.
I found in AIO/Menu a WinLegacy file (don't know what this is for) and a WinLegacy.cfg

 

Is there a way to load main.cfg with the new grubx64.efi?

Or maybe a way to choose on USB start which grubx64.efi I wan't use?



#63 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 01:55 PM

You need to post the complete menu you are using.



#64 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 04 July 2019 - 01:59 PM

The grubx64.efi will load \boot\grub\grub.cfg

 

so you need to point it at the AIO boot menu

 

So you can add to the bottom of the grub.cfg menu in post #58

menuentry "AIO Menu" {
configfile /AIO/grub/grub.cfg
}

or maybe  main.cfg (depends what is in grub.cfg).



#65 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 05 July 2019 - 09:29 AM

You are right.

I use the old grubx64.efi so it loads the AIO menu.

I rename main.cfg and it also loads the AIO menu.
Then I rename grub.cfg in /AIO/grub and grub shell appears.

 

So it use the /AIO/grub/grub.cfg, right?

 

grub.cfg in /AIO/grub:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###	
if [ -s $prefix/grubenv ]; then
  load_env
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ -z "$bgloaded" ]; then
	if [ -z "${font}" ]; then
		if [ -e ${prefix}/fonts/fonts.cfg ]; then source ${prefix}/fonts/fonts.cfg; else font=unicode-small; fi
	fi
	if loadfont $font ; then
		export font
		#set gfxmode=1024x768x32,1024x768x24,1024x768x16,1024x768,auto
		#set gfxpayload=keep
		load_video
		insmod gfxterm
		terminal_output gfxterm
		if [ -z "${bg}" ]; then
			if [ -e ${prefix}/background.cfg ]; then source ${prefix}/background.cfg;
			else
				bg="splash.png"
				export bg
				save_env bg
			fi
		else export bg; fi
		insmod png
		insmod jpeg
		background_image -m stretch "${prefix}/themes/${bg}"
		set bgloaded="ok"
		export bgloaded
	fi
fi
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=15
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=15
fi

if [ "${grub_platform}" == "efi" ]; then
	set efi=1
	export efi
	if [ "${grub_cpu}" == "x86_64" ]; then
		set _SPEC_UEFI_ARCH="x64"
	else
		set _SPEC_UEFI_ARCH="ia32"
	fi
fi
if [ "${grub_platform}" == "pc" ]; then
	set pc=1
	set memdisk="(${root})/AIO/Tools/memdisk"
	export pc
	export memdisk
fi

if cpuid -l; then
	set _SPEC_ARCH="64"
	set _SPEC_ARCH_BIT="64-bit"
else
	set _SPEC_ARCH="32"
	set _SPEC_ARCH_BIT="32-bit"
fi
set menudir="(${root})/AIO/Menu"

export _SPEC_ARCH
export _SPEC_UEFI_ARCH
export _SPEC_ARCH_BIT
export menudir

probe -l -s rootlabel $root
probe -u -s rootuuid $root
probe -p -s scheme $root
probe -f -s fs $root
export rootlabel
export rootuuid
export scheme
export fs

if [ "${fs}" == "iso9660" ]; then set cd=1; export cd; fi

if [ -e ${prefix}/Password.cfg ]; then
	source ${prefix}/Password.cfg
fi
source ${prefix}/locale/Lang.cfg
source ${prefix}/Functions.cfg
source ${prefix}/Main.cfg

### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
#if [ -f  ${config_directory}/custom.cfg ]; then
#  source ${config_directory}/custom.cfg
#elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
#  source $prefix/custom.cfg;
#fi
### END /etc/grub.d/41_custom ###

When I used it with

 

menuentry "AIO Menu" {
configfile /AIO/grub/grub.cfg
}

 

an error appears. I think it doesn't find nesessary files.
Can I point menu folder to /AIO/grub?

 

P.S. I guess I could copy the whole /AIO/grub folder to /Boot/grub, but that'd be a waste of disk space.
 



#66 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 05 July 2019 - 09:41 AM

You must use the new grubx64.efi.

it will load for \boot\grub\grub.cfg

then set the $prefix to the AIO folder

 

\boot\grub\grub.cfg

set prefix=($root)/AIO/grub
configfile $prefix/grub.cfg

you can add your wimboot menus into the \AIO\grub\grub.cfg file or the \AIO\grub\Main.cfg file.

 

[Edit] changed $root to ($root).


Edited by steve6375, 05 July 2019 - 03:11 PM.


#67 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 05 July 2019 - 10:47 AM

Hi Steve.

 

If I do so Minimal Bash appears

 

Grub.cfg in /boot/grub

set prefix=$root/AIO/grub
configfile $prefix/grub.cfg

Is anything wrong or missing?

 

 

You must use the new grubx64.efi.

Without a doubt :D


Edited by nierewa, 05 July 2019 - 10:50 AM.


#68 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 05 July 2019 - 10:49 AM

type 

set

an look at the values of prefix and root

change them if they look wrong using

set xxxx=yyyyy

and then type

normal

to see if it now works



#69 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 05 July 2019 - 10:51 AM

P.S. try

set prefix=($root)/AIO/grub


#70 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 05 July 2019 - 10:58 AM

Prefix=hd0,msdos1/AIO/grub
root=hd0,msdos1

 

Hmm, That's correct.

Should actually work. ??



#71 steve6375

steve6375

    Platinum Member

  • Developer
  • 7324 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 05 July 2019 - 10:59 AM

no needs parentheses

 

($root)    not $root



#72 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 05 July 2019 - 10:59 AM

Your to fast for me :D

That works.



#73 nierewa

nierewa

    Frequent Member

  • Advanced user
  • 107 posts
  •  
    Germany

Posted 05 July 2019 - 11:05 AM   Best Answer

Many thanks to you Steve.
I would never have managed that alone.
You are the best of all     :worship:

 

   :yahoo:   :party_time:      :cheers:






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users