View Issue Details

IDProjectCategoryView StatusLast Update
0002469Kali LinuxGeneral Bugpublic2018-01-29 12:25
ReporterMister_X Assigned Tog0tmi1k  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Summary0002469: Automatically unmount proc and sys when interrupting the ISO build script
Description

In some cases, when the build script gets interrupted by Ctrl-C, proc and sys and still mounted which is a problem when you want to delete the whole directory (fresh restart/whatever other reason).

A 'trap' should be added in order to automatically ummount those when Ctrl-C or when the script is killed. An issue that can arise is the trap being run several times because the user hit Ctrl-C several times and there is a trick for that.

Additional Information

Let me know if you need help adding that, I can do it very easily, I've been using it on a few of my scripts.

Activities

Mister_X

Mister_X

2015-08-03 06:06

reporter   ~0003650

Need to also unmount /dev/pts

rhertzog

rhertzog

2015-09-03 09:41

administrator   ~0003892

Except that all the mount are handled by live-build and not by our build script. If you have a fix for live build, I would gladly take it but I don't see it as easy as you assume... because the mount and umount are not done in the same process. live-build calls a bunch of helper scripts one after the other.

Mister_X

Mister_X

2015-09-07 23:06

reporter   ~0003965

It was build using build.sh from the live-build-config git. So it can easily be added in there.

rhertzog

rhertzog

2015-09-08 07:16

administrator   ~0003969

That's not a proper fix but I would accept a patch for this at the issue has been annoying me as well.

g0tmi1k

g0tmi1k

2018-01-29 12:25

administrator   ~0008113

Due to the age of the OS (Kali Moto [v1], Kali Safi [v2], Kali Rolling 2016.x), these legacy versions are no longer supported.
We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux - https://www.kali.org/downloads/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing,and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

Issue History

Date Modified Username Field Change
2015-08-03 06:03 Mister_X New Issue
2015-08-03 06:06 Mister_X Note Added: 0003650
2015-09-03 09:41 rhertzog Note Added: 0003892
2015-09-03 09:42 rhertzog Product Version kali-dev =>
2015-09-03 09:42 rhertzog Summary Automatically unmount proc and sys when interrupting the script => Automatically unmount proc and sys when interrupting the ISO build script
2015-09-07 23:06 Mister_X Note Added: 0003965
2015-09-08 07:16 rhertzog Note Added: 0003969
2018-01-29 12:25 g0tmi1k Assigned To => g0tmi1k
2018-01-29 12:25 g0tmi1k Status new => closed
2018-01-29 12:25 g0tmi1k Resolution open => suspended
2018-01-29 12:25 g0tmi1k Note Added: 0008113