Initial source release
This commit is contained in:
commit
11301fae04
55 files changed
+2652
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Диагностическая сборка krd32.efi: показать результат поиска и список файлов.
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$grub = 'C:\PF\grub2-a1ive\grub'
|
||||
$dir = "$grub\i386-efi"
|
||||
$out = 'C:\PF\KRD\images'
|
||||
$mods = 'normal search search_fs_file chain part_msdos part_gpt fat ntfs exfat configfile echo test ls linux'
|
||||
|
||||
$cfg = @(
|
||||
'set timeout=0',
|
||||
'search --no-floppy --file --set=krd /efi/Paravis/KRD/live/vmlinuz',
|
||||
'echo "krd=[$krd]"',
|
||||
'if [ -n "$krd" ]; then',
|
||||
' echo "--- listing:"',
|
||||
' ls ($krd)/efi/Paravis/KRD/live',
|
||||
' echo "--- linux try:"',
|
||||
' linux ($krd)/efi/Paravis/KRD/live/vmlinuz boot=live components live-media-path=/efi/Paravis/KRD/live locales=ru_RU.UTF-8',
|
||||
' echo "linux rc=$?"',
|
||||
' initrd ($krd)/efi/Paravis/KRD/live/initrd.img',
|
||||
' echo "initrd rc=$?"',
|
||||
'else',
|
||||
' echo "KRD NOT FOUND"',
|
||||
'fi',
|
||||
'sleep 25'
|
||||
) -join "`n"
|
||||
|
||||
$cfgPath = Join-Path $env:TEMP 'krd32dbg.cfg'
|
||||
[IO.File]::WriteAllText($cfgPath, $cfg, (New-Object System.Text.UTF8Encoding($false)))
|
||||
$o = Join-Path $out 'krd32dbg.efi'
|
||||
if (Test-Path $o) { Remove-Item $o -Force }
|
||||
& "$grub\grub-mkstandalone.exe" "--directory=$dir" -O i386-efi -o $o "--modules=$mods" "boot/grub/grub.cfg=$cfgPath" 2>&1 | Select-Object -First 5
|
||||
' OK: {0:N0} байт' -f (Get-Item $o).Length
|
||||
Reference in new issue
Block a user