[Solved] How can I set kernel parameters against the "system-builder" iso?

Here you can post about the issues related to modifications performed manually (not through the kiosk wizard). Example: swapped kernel, added 3rd party modules or files.
Please describe in detail what has been changed and hopefully other kiosk user will be able to help.
Porteus team wont resolve bugs posted in this category as we support only modifications made by the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

[Solved] How can I set kernel parameters against the "system-builder" iso?

Post#1 by casystems » 17 May 2018, 11:13

Specifically, the kernel_parameters=reboot=efi,pci,force so (at the end of the install) it can reboot the device instead of black-screening?
Last edited by casystems on 24 May 2018, 07:10, edited 3 times in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

How can I set kernel parameters against the "system-builder" iso?

Post#2 by fanthom » 17 May 2018, 11:43

Please remaster installation ISO and edit append line in the /boot/isolinux/isolinux.cfg file so its as follows:

Code: Select all

append initrd=/boot/initrd.xz quiet first_run reboot=efi,pci,force
Thanks
Please add [Solved] to your thread title if the solution was found.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

[Solved] How can I set kernel parameters against the "system-builder" iso?

Post#3 by casystems » 18 May 2018, 12:41

Here are some instructions if anyone else needs to do this who is predominantly Windows based but has a bit of command line knowledge:
I used vmware player and Linux Mint with shared folders - from within the Linux session:

* start in a tmp folder

Code: Select all

cd /tmp
* most operations require super-user (if this doesn't work you will need to prefix (most) commands with "sudo " for them to work

Code: Select all

su
* copy ISO from vmware shared folder to working folder

Code: Select all

cp /mnt/hgfs/temp/*.iso source.iso
* mount needs a mount-point/dir before it will mount

Code: Select all

mkdir /mnt/kiosk
* mount image

Code: Select all

mount -o loop source.iso /mnt/kiosk
* create a work folder

Code: Select all

mkdir /tmp/kiosk_ISO
* copy files from mounted image to work folder

Code: Select all

cp -a /mnt/kiosk/* /tmp/kiosk_ISO
* unmount image

Code: Select all

umount /mnt/kiosk
* remove mount-point/dir

Code: Select all

rmdir /mnt/kiosk
* working in folder with files now

Code: Select all

cd kiosk_ISO
* edit

Code: Select all

nano boot/isolinux/isolinux.cfg
* add reboot stuff so the line looks like:

Code: Select all

append initrd=/boot/initrd.xz quiet first_run reboot=efi,pci,force
* edit

Code: Select all

nano boot/isolinux/grub.cfg
* add reboot stuff to the linux line so the line looks like:

Code: Select all

linux ... first_run reboot=efi,pci,force
* rebuild the iso

Code: Select all

bash make_iso.sh
<if this fails ; as it did on mine ; download the mkisofs, move it and set to allow execute>

Code: Select all

mv /home/{your-home-dir}/Downloads/mkisofs /usr/local/bin
chmod +x /usr/local/bin/mkisofs
* remaster ISO (with UEFI)

Code: Select all

isohybrid -u /tmp/Porteus-Kiosk.iso
* copy it back to vmware shared folder

Code: Select all

cp /tmp/Porteus-Kiosk.iso /mnt/hgfs/temp/
ps.

** if you need to burn it onto a pen-stick now ; list usb devices

Code: Select all

ls -l /dev/disk/by-id/usb*
* burn ISO to pen-stick (where the /dev/sdb is the device name given to your pen-stick as shown from above)

Code: Select all

sudo dd if=/tmp/Porteus-Kiosk.iso of=/dev/sdb
otherwise just use the Win32DiskImageWriter (https://sourceforge.net/projects/win32diskimager/)
Last edited by casystems on 24 May 2018, 07:10, edited 3 times in total.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

How can I set kernel parameters against the "system-builder" iso?

Post#4 by casystems » 18 May 2018, 13:22

I've done all these steps but the device still locks up with a black screen and doesn't reboot...

I've used the GUI to mount the .iso I made, nemo to browse to the folder and Text Editor to open the file and can confirm:

Code: Select all

timeout 0
prompt 0
default kiosk

label kiosk
kernel /boot/vmlinuz
append initrd=/boot/initrd.xz quiet first_run reboot=efi,pci,force

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

How can I set kernel parameters against the "system-builder" iso?

Post#5 by fanthom » 18 May 2018, 14:09

Sorry - this is EFI system so you may do the same for /boot/isolinux/grub.cfg in the 'linux' line.

Code: Select all

linux	/boot/vmlinuz quiet first_run reboot=efi,pci,force
Thanks
Please add [Solved] to your thread title if the solution was found.

casystems
White ninja
White ninja
Posts: 19
Joined: 08 May 2018, 13:35
Distribution: Porteus Kiosk version 20180422

[Solved] How can I set kernel parameters against the "system-builder" iso?

Post#6 by casystems » 24 May 2018, 07:11

Cheers - I've updated my step-by-step instructions and added [Solved].

Locked