neurobin / JLIVECD

Live cd/dvd customization tool
https://neurobin.org/projects/softwares/unix/JLIVECD/
GNU General Public License v2.0
89 stars 24 forks source link

Script continues without waiting for chroot to finish #17

Open Storhemulen opened 7 years ago

Storhemulen commented 7 years ago

Hi!

I´m running JLIVECD on ubuntu-16.04.2-desktop-amd64, trying to edit debian-live-8.8.0-amd64-standard.iso When the chroot terminal opens, the script doesn´t wait for chroot to finish, it just keeps going. I tried to set a longer timer value with JLopt -t 600, but it still only waits 15s.

What am I doing wrong?

neurobin commented 7 years ago

I couldn't reproduce it (in Xubuntu 16.04 LTS with debian-live-8.7.1-amd64-xfce-desktop) . Unfortunately I don't have the 8.8.0 live cd of debian right now. Can you provide me with all the terminal outputs? (you may/should replace the actual username in the output with user for privacy and security)

Also the output of the following command:

ls -la /usr/local/JLIVECD
neurobin commented 7 years ago

and also the content of /usr/local/JLIVECD/.config

cat /usr/local/JLIVECD/.config

and the content of .config in your project dir:

cat /your/project/dir/path/.config
Storhemulen commented 7 years ago
ubuntu@ubuntu-snicksnack:~$ ls -la /usr/local/JLIVECD
total 144
drwxrwxrwx  3 root   root    4096 jun 14 22:25 .
drwxr-xr-x 11 root   root    4096 jun 12 21:22 ..
-rwxrwxrwx  1 root   root    4082 jun 12 21:22 48.png
-rwxrwxrwx  1 root   root    2315 jun 12 21:22 changelog
-rwxrwxrwx  1 root   root     425 jun 12 21:24 .config
-rwxrwxrwx  1 root   root    1761 jun 12 21:22 config.conf
-rwxr-xr-x  1 root   root    2811 jun 12 21:22 defconf.sh
drwxr-xr-x  3 ubuntu ubuntu  4096 jun 14 22:25 finalone
-rwxr-xr-x  1 root   root   35725 jun 12 21:22 funcs.sh
-rwxr-xr-x  1 root   root    3523 jun 12 21:22 help
-rwxr-xr-x  1 root   root     982 jun 12 21:22 install.sh
-rw-r--r--  1 root   root      22 jun 15 21:19 JLIVEdir
-rw-r--r--  1 root   root      57 jun 14 22:25 JLIVEisopath
-rwxr-xr-x  1 root   root    5297 jun 12 21:22 JLopt
-rwxr-xr-x  1 root   root    2426 jun 12 21:22 JLRefreshNetwork
-rwxr-xr-x  1 root   root    3927 jun 12 21:22 JLstart
-rwxrwxrwx  1 root   root   18026 jun 12 21:22 LICENSE
-rwxr-xr-x  1 root   root    3211 jun 12 21:22 preparechroot
-rwxrwxrwx  1 root   root   11950 jun 12 21:22 README.md
-rwxr-xr-x  1 root   root    5284 jun 12 21:22 updarp
ubuntu@ubuntu-snicksnack:~$ 
Storhemulen commented 7 years ago
########################################################################
# This configuration file is only for internal use.
# Do not edit this file manually. If you want to override any option
# use the config.conf file. Do not override any option that specifies
# (no override) in its' comment section.
# This file is *not* a Bash script.
########################################################################
TIMEOUT=15
Storhemulen commented 7 years ago
ubuntu@ubuntu-snicksnack:~$ cat ~/finalone/.config

# operating mode (override not possible)
OSMODE=ubuntu

# Image label (no override for archlinux)
IMAGENAME=Ubuntu xenial 20160422-09:27

# ISO image name without .iso
DISKNAME=finalone

# Whether to prevent GUI apps to run.
XHOST=Y

# Whether to rebuild initrd
REBUILDINITRAMFS=n

# Whether to keep users home directory, by default it is deleted.
RETAINHOME=n

# y: Fast compression, larger image size. n: smaller image but slower
FASTCOMPRESSION=n

# Whether the image to be built is a UEFI image
UEFI=n

# Whether to prevent building hybrid image.
NOHYBRID=Y
Storhemulen commented 7 years ago

I've found a workaround: When chroot opens a new window, I quickly go back to the window with the script and press ctrl+z then when I'm done in chroot I just restart the script with fg

neurobin commented 7 years ago

Thanks for taking your time to cooperate. I got something that caught my eye:

You said you were modifying a debian live iso, but you seem to ran it in ubuntu mode (OSMODE=ubuntu), and IMAGENAME=Ubuntu xenial 20160422-09:27 says it was actually a ubuntu live iso not debian or may be you modified the IMAGENAME property later. Can you confirm these?

However I will mention some points that may make things a bit more clear:

  1. To modify debian live cd you must run it in debian mode (you can change the OSMODE property in ~/finalone/.config file)
  2. seems like JLopt -t failed to update the /usr/local/JLIVECD/.config file. You can manually edit it to change the timeout value. I will investigate further on why it failed to update the value.
  3. You should keep the IMAGENAME unchanged in .config file even though changing it will work without any problem. If you want to change it, you can override it in the config.conf file in the project directory.
frozenbubbleboy commented 7 years ago

I'm also experiencing the issue where JLIVECD does not pause after launching the chroot environment. This happens when I run JLIVECD under Linux Mint 18 or 18.2. When I run under Linux Mint 17.3, however, JLIVECD pauses at the appropriate place. Linux Mint 17.3 is based on Ubuntu 14.04 (Trusty), while 18.x is based on Ubuntu 16.04 (Xenial)

neurobin commented 7 years ago

@frozenbubbleboy can you provide more info?:

  1. Host system: LM 18.2
  2. Live system:
  3. Post here the content of .config file inside the project dir.

Also, if you could post the entire terminal output when this problem occurs, that would be very helpful.

frozenbubbleboy commented 7 years ago

Host system: Linux Mint 18.2 Live system: Linux Mint 18.2 (Also experienced with 18.1)

dot-config.txt terminal.txt

neurobin commented 7 years ago

@frozenbubbleboy

  1. which terminal you are using, gnome-terminal, mate-terminal, xfce-terminal?
  2. Which DE you are using, cinnamon, mate, xfce, kde?
frozenbubbleboy commented 7 years ago

Gnome-terminal on Cinnamon

neurobin commented 7 years ago

Can you check what happens if you use a different terminal:

sudo apt-get install xterm
sudo JLopt -t1 xterm
frozenbubbleboy commented 7 years ago

Things work as intended when launching xterm as the chroot terminal. This appears to be a change in behavior with gnome-terminal.

ijash commented 6 years ago

yes i am be able to reproduce the bug. i am using mint 18.3

ghost commented 5 years ago

I'm also experiencing this bug. My env is: Host OS: Linux Mint 19 CINNAMON 64bit Live OS: Linux Mint 19 MATE 64bit