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

Script continues without waiting for chroot to finish #17

Open
Storhemulen opened this issue Jun 12, 2017 · 16 comments
Open

Script continues without waiting for chroot to finish #17

Storhemulen opened this issue Jun 12, 2017 · 16 comments

Comments

@Storhemulen
Copy link

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
Copy link
Owner

neurobin commented Jun 13, 2017

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
Copy link
Owner

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
Copy link
Author

Storhemulen commented Jun 15, 2017

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
Copy link
Author

Storhemulen commented Jun 15, 2017

########################################################################
# 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
Copy link
Author

Storhemulen commented Jun 15, 2017

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
Copy link
Author

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
Copy link
Owner

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
Copy link

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
Copy link
Owner

neurobin commented Jul 13, 2017

@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
Copy link

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

dot-config.txt
terminal.txt

@neurobin
Copy link
Owner

@frozenbubbleboy

  1. which terminal you are using, gnome-terminal, mate-terminal, xfce-terminal?
  2. Which DE you are using, cinnamon, mate, xfce, kde?

@frozenbubbleboy
Copy link

Gnome-terminal on Cinnamon

@neurobin
Copy link
Owner

neurobin commented Jul 18, 2017

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

sudo apt-get install xterm
sudo JLopt -t1 xterm

@frozenbubbleboy
Copy link

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

@ijash
Copy link

ijash commented Jul 2, 2018

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

@ghost
Copy link

ghost commented Dec 16, 2018

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

@ghost ghost mentioned this issue Dec 17, 2018
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

No branches or pull requests

4 participants