^
That settles it, then. The solution already exists, you are just unable to find it.
Still you request me coding it anew. Quick audacious of you, instead of, you know, doing the obvious and finding and looking at the already existing solution.
No capability to remove boot media with a savefile
- Rava
- Contributor
- Posts: 4914
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.0 x86_64 + 4.0 i586
- Location: Forests of Germany
No capability to remove boot media with a savefile
Cheers!
Yours Rava
Yours Rava
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
No capability to remove boot media with a savefile
You are by far the better coder and even have a whole thread backing that up: Ravas coding goodies. I don't.
Ed
- Rava
- Contributor
- Posts: 4914
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.0 x86_64 + 4.0 i586
- Location: Forests of Germany
No capability to remove boot media with a savefile
That might be, but you ignore the elephant in the room:
Please answer the obvious and no moving the goalpost.
Cheers!
Yours Rava
Yours Rava
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
No capability to remove boot media with a savefile
I believe the system shutdown uses the /etc/rc.d/rc.6 and /mnt/live/cleanup files. A reference to changes-exit.conf is on lines 38 and 40 of the cleanup file.
Ed
- Rava
- Contributor
- Posts: 4914
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.0 x86_64 + 4.0 i586
- Location: Forests of Germany
No capability to remove boot media with a savefile
indeed, it is the section of
Code: Select all
# Save 'changes=EXIT:' session:
Code: Select all
if [ "$ans" = "" ]; then
DEST=`cat /tmp/changes-exit`; NAME=`basename $DEST`; MNAME=/memory/images/changes; FOLDERS=`grep '^/' /union/etc/changes-exit.conf | sed s/^.//g`
echo "saving changes to $NAME - do not power off the PC"
cd /memory/changes; rm -rf var/lock/subsys/* var/run/laptop-mode-tools/* `grep '^!' /union/etc/changes-exit.conf | sed s/^..//g | tr "\n" " "`

Added in 55 seconds:
Maybe how /tmp/changes-exit is set up is also of importance.
Cheers!
Yours Rava
Yours Rava
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
No capability to remove boot media with a savefile
/mnt/live/init & /mnt/live/linuxrc Lines 154, 273, 284.
Ed
- Rava
- Contributor
- Posts: 4914
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.0 x86_64 + 4.0 i586
- Location: Forests of Germany
No capability to remove boot media with a savefile
^
Wow. made by our famous (now retired) brokenman himself, seemingly without any needed changes.
Added in 1 minute 3 seconds:
At least there are no documented changes according to the initial code lines.
Code: Select all
root@porteus:/# head -n 3 /mnt/live/init
#!/bin/sh
### linuxrc script by brokenman <http://www.porteus.org>
root@porteus:/#
Added in 1 minute 3 seconds:
At least there are no documented changes according to the initial code lines.
Cheers!
Yours Rava
Yours Rava
- Ed_P
- Contributor
- Posts: 7915
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.0 ISO
- Location: Western NY, USA
No capability to remove boot media with a savefile
It looks like this would be easier to impliment.
https://forum.porteus.org/viewtopic.php?p=86214#p86214 wrote:I like this idea Rapha_.
![]()
![]()
In my changes.sh script I changed myline to beCode: Select all
sudo -S find /mnt/live/memory/changes -iname "*" -mmin -$X
Code: Select all
sudo -S find /mnt/live/memory/changes -not -path "*/.cache/*" -iname "*" -mmin -$X
Ed