make_iso.sh successful but no ISO file

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
stopel
White ninja
White ninja
Posts: 4
Joined: 16 Mar 2016, 14:45
Distribution: 3.7.0
Location: Hamburg

make_iso.sh successful but no ISO file

Post#1 by stopel » 23 Jun 2016, 12:01

Hi all,

i unsquashed / resquashed 003-settings.xzm and tried running make_iso.sh.
Since I m on Ubuntu 14.04 I had to copy mkisofs to /usr/share/bin/. Script then works and outputs "Saved as /root/porteus/Porteus-Kiosk.iso".

But there is no file.

Anyone have any idea what may be wrong, or what I could try?

Any suggestions much appreciated!

Regards,
Sebastian

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

Re: make_iso.sh successful but no ISO file

Post#2 by fanthom » 23 Jun 2016, 12:05

Hello stopel,

Since I m on Ubuntu 14.04 I had to copy mkisofs to /usr/share/bin/. Script then works and outputs "Saved as /root/porteus/Porteus-Kiosk.iso".
It should be placed in /usr/local/bin

Thank you.
Please add [Solved] to your thread title if the solution was found.

stopel
White ninja
White ninja
Posts: 4
Joined: 16 Mar 2016, 14:45
Distribution: 3.7.0
Location: Hamburg

Re: make_iso.sh successful but no ISO file

Post#3 by stopel » 23 Jun 2016, 15:26

Hi fanthom,

sorry, of course, that is where it is.
after I copied mkisofs there, the script started running successfully ('Saved as /root/porteus/Porteus-Kiosk.iso.'), but there is no such file anywhere on the system.

Code: Select all

root@test-ubuntu:~/porteus/_extracted# chmod +x /usr/local/bin/mkisofs
root@test-ubuntu:~/porteus/_extracted# bash v1/make_iso.sh
This script will create Porteus Kiosk ISO from files in current directory.
Press enter to proceed.

Saved as /root/porteus/Porteus-Kiosk.iso.
root@test-ubuntu:~/porteus/_extracted# cd /root/porteus/
root@test-ubuntu:~/porteus# ls -la
total 118796
drwxr-xr-x 3 root root     4096 Jun 22 19:39 .
drwx------ 4 root root     4096 Jun 22 21:11 ..
drwxr-xr-x 5 root root     4096 Jun 22 19:56 _extracted
-rw-r--r-- 1 root root 60817408 Jun 22 18:18 kiosk.iso
root@test-ubuntu:~/porteus#
Note: kiosk.iso is the original iso..

any suggestions?

Sebastian

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

Re: make_iso.sh successful but no ISO file

Post#4 by fanthom » 23 Jun 2016, 16:53

Hmmm.... perhaps /usr/local/bin is not it the PATH for root user. Please confirm by running:
echo $PATH

Possible solution - use guest account and sudo:

Code: Select all

sudo bash make_iso.sh
Please mind that you must enter to directory where make_iso.sh is located. You cant run it as:

Code: Select all

sudo bash folder/make_iso.sh
(this is probably a real reason of your issues).
Please add [Solved] to your thread title if the solution was found.

stopel
White ninja
White ninja
Posts: 4
Joined: 16 Mar 2016, 14:45
Distribution: 3.7.0
Location: Hamburg

Re: make_iso.sh successful but no ISO file

Post#5 by stopel » 24 Jun 2016, 09:43

Hi fanthom,

path seems to be correct

Code: Select all

root@test-ubuntu:~/porteus# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
and using guest account with sudo has same result - script runs, but no ouput. Regardless if running it from same folder where script is or different folder with path/.. specified

Code: Select all

root@test-ubuntu:~/porteus# su user
user@test-ubuntu:/root/porteus/_extracted/v1$ sudo bash make_iso.sh
[sudo] password for user:
This script will create Porteus Kiosk ISO from files in current directory.
Press enter to proceed.

Saved as /root/porteus/_extracted/Porteus-Kiosk.iso.
user@test-ubuntu:/root/porteus/_extracted/v1$ cd ..
user@test-ubuntu:/root/porteus/_extracted$ cd ..
user@test-ubuntu:/root/porteus$ ls -la
total 59404
drwxr-xr-x 3 root root     4096 Jun 23 13:37 .
drwx------ 4 root root     4096 Jun 23 13:37 ..
drwxr-xr-x 5 root root     4096 Jun 22 19:56 _extracted
-rw-r--r-- 1 root root 60817408 Jun 22 18:18 kiosk.iso
user@test-ubuntu:/root/porteus$ cd _extracted/
Also: I have tried to run make_iso from a newly extracted iso, with no changes to packages, and also same result.

Out of curiosity, the moment between "Press enter to proceed" and "Saved as /...." for me is instant, as in 0 delay. Shouldnt there be at least a second of processing time for compression & attempt to write a file?

Thanks again.
Sebastian

Locked