Page 1 of 1

make_iso.sh successful but no ISO file

Posted: 23 Jun 2016, 12:01
by stopel
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

Re: make_iso.sh successful but no ISO file

Posted: 23 Jun 2016, 12:05
by fanthom
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.

Re: make_iso.sh successful but no ISO file

Posted: 23 Jun 2016, 15:26
by stopel
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

Re: make_iso.sh successful but no ISO file

Posted: 23 Jun 2016, 16:53
by fanthom
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).

Re: make_iso.sh successful but no ISO file

Posted: 24 Jun 2016, 09:43
by stopel
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