Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb-init behavior different between dd'ed image and iso boot #1374

Closed
tlaurion opened this issue Apr 14, 2023 · 1 comment · Fixed by #1377
Closed

usb-init behavior different between dd'ed image and iso boot #1374

tlaurion opened this issue Apr 14, 2023 · 1 comment · Fixed by #1377

Comments

@tlaurion
Copy link
Collaborator

tlaurion commented Apr 14, 2023

Went through this trying to boot tinycore detached signed iso.

To replicate on recovery shell:

  • put Tinycore iso on usb thumb drive (this is isolinux, not grub)
  • usb-init #select iso (will fail since iso is not detached signed)
  • mount -o remount,rw /media #put media in write mode
  • gpg --card-status #to map public key and security dongle's private key
  • gpg --detach-sign /media/tinycore.iso #to sign iso
  • mount -o remount,ro /media #to sync changes to media, putting in in read only mode
  • usb-init #to mount usb media to media, search iso and mount to /boot, and search /boot for boot options

This will pass detached signature validation, but will fail to find bootable options.

@tlaurion tlaurion changed the title usb-init doesn't interpret isolinux from iso (just dd'ed images to USB thumb drive) usb-init behavior different between dd'ed image and iso boot Apr 14, 2023
tlaurion added a commit to tlaurion/heads that referenced this issue Apr 14, 2023
Shows isolinux paths to kernel and initrd invalid:
+++ Scanning for unsigned boot options
DEBUG: kexec-parse-boot /boot /boot/boot/isolinux/isolinux.cfg
TRACE: Under /bin/kexec-parse-boot
DEBUG: filedir= /boot/boot/isolinux
DEBUG: bootdir= /boot
DEBUG: bootlen= 5
DEBUG: appenddir= /boot/isolinux
TRACE:  search_entry: syslinux label: line= LABEL plus
TRACE:  search_entry: syslinux label: name=  plus
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL jwm
TRACE:  search_entry: syslinux label: name=  jwm
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL icewm
TRACE:  search_entry: syslinux label: name=  icewm
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL fluxbox
TRACE:  search_entry: syslinux label: name=  fluxbox
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL hackedbox
TRACE:  search_entry: syslinux label: name=  hackedbox
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL openbox
TRACE:  search_entry: syslinux label: name=  openbox
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL flwm
TRACE:  search_entry: syslinux label: name=  flwm
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL tiny
TRACE:  search_entry: syslinux label: name=  tiny
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL cxi
TRACE:  search_entry: syslinux label: name=  cxi
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL cxw
TRACE:  search_entry: syslinux label: name=  cxw
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL cxf
TRACE:  search_entry: syslinux label: name=  cxf
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL core
TRACE:  search_entry: syslinux label: name=  core
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL nocde
TRACE:  search_entry: syslinux label: name=  nocde
DEBUG: /boot/vmlinuz doesn't exist
Failed to parse any boot options
tlaurion added a commit to tlaurion/heads that referenced this issue Apr 17, 2023
Shows isolinux paths to kernel and initrd invalid:
+++ Scanning for unsigned boot options
DEBUG: kexec-parse-boot /boot /boot/boot/isolinux/isolinux.cfg
TRACE: Under /bin/kexec-parse-boot
DEBUG: filedir= /boot/boot/isolinux
DEBUG: bootdir= /boot
DEBUG: bootlen= 5
DEBUG: appenddir= /boot/isolinux
TRACE:  search_entry: syslinux label: line= LABEL plus
TRACE:  search_entry: syslinux label: name=  plus
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL jwm
TRACE:  search_entry: syslinux label: name=  jwm
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL icewm
TRACE:  search_entry: syslinux label: name=  icewm
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL fluxbox
TRACE:  search_entry: syslinux label: name=  fluxbox
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL hackedbox
TRACE:  search_entry: syslinux label: name=  hackedbox
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL openbox
TRACE:  search_entry: syslinux label: name=  openbox
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL flwm
TRACE:  search_entry: syslinux label: name=  flwm
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL tiny
TRACE:  search_entry: syslinux label: name=  tiny
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL cxi
TRACE:  search_entry: syslinux label: name=  cxi
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL cxw
TRACE:  search_entry: syslinux label: name=  cxw
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL cxf
TRACE:  search_entry: syslinux label: name=  cxf
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL core
TRACE:  search_entry: syslinux label: name=  core
DEBUG: /boot/vmlinuz doesn't exist
TRACE:  search_entry: syslinux label: line= LABEL nocde
TRACE:  search_entry: syslinux label: name=  nocde
DEBUG: /boot/vmlinuz doesn't exist
Failed to parse any boot options
@tlaurion
Copy link
Collaborator Author

This fixes it 3af5cf2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant