LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-09-2019, 09:03 AM   #76
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446

actually it only works if you manually copy stuff from wherever between reboots, my mistake
so before you reboot/shutdown maybe use rsync or cp to make it persistent...

cp -r /root/.cache/mozilla /run/initramfs/memory/date/Slackerc/rootcopy/.cache
cp -r /root/.mozilla /run/initramfs/memory/date/Slackerc/rootcopy

rsync probably better...I'll design a shutdown script....
 
Old 06-15-2019, 01:34 PM   #77
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Got the newest Slackerc (current) build up today, thanks to anyone trying it

The newest is Slackerc-061519-x86_64.iso with 2 kernels (4.19.47-xanmod24 and 5.1.9-xanmod6), upgraded packages and some added Slackbuilds.
It is also a isohybrid so you can dd it to usb.
You can install it with Unetbootin also, but best way is below for frugal install to usb/hard drive.
The default desktop is now a customized Fluxbox desktop with Slackware-xdg-menus for all desktops (mwm,windowmaker,fvwm2, etc).
You can change desktops upon logging out or boot to console login and use xwmconfig to pick a desktop (KDE,XFCE$,Fluxbox,Etc).
NOTE! Until I get the umount bug fixed, IF you're running PERSISTENT, please only use ext2/ext3 or ext4 formatted usb's/hard drives to boot from, not Fat32!

Direct link
https://sourceforge.net/projects/sla...4.iso/download

Screenshot attached below
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-06-15_14-19-01.jpg
Views:	9
Size:	61.5 KB
ID:	30745  
 
Old 06-16-2019, 02:03 PM   #78
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
ok Ive fixed the dirty umount on fat32 usb so ill be uploading a new iso soon
I had to edit /run/initramfs/shutdown and /etc/rc.d/rc.6 as so
the areas in BLUE are my edits

Here is /run/initramfs/shutdown

Code:
#!/bin/sh
# Shutdown script for initramfs. It's automatically started by
# systemd (if you use it) on shutdown, no need for any tweaks.
# Purpose of this script is to unmount everything cleanly.
#
# Author: Tomas M <http://www.linux-live.org/>
#

. /run/initramfs/lib/config
. /run/initramfs/lib/livekitlib

debug_start

debug_log "Entering shutdown procedures of Linux Live Kit"
debug_log "Called with arguments: " "$*"

# if debug is enabled, run shell now
debug_shell

detach_free_loops()
{
   losetup -a | cut -d : -f 1 | xargs -r -n 1 losetup -d
}

# $1=dir
umount_all()
{
   tac /proc/mounts | cut -d " " -f 2 | grep ^$1 | while read LINE; do
      umount $LINE 2>/dev/null
   done
}

# Update devs so we are aware of all active /dev/loop* files.
# Detach loop devices which are no longer used
debug_log "- Detaching loops"
#mdev -s
detach_free_loops

# do it the dirty way, simply try to umount everything to get rid of most mounts
debug_log "- Unmounting submounts of union"
umount_all /oldroot

# free aufs of /run mount, and umount aufs
debug_log "- Unmounting union itself"
mkdir /run2
mount --move /oldroot/run /run2
umount /oldroot

# remember from which device we are started, so we can eject it later
DEVICE="$(cat /proc/mounts | grep /memory/data | grep /dev/ | cut -d " " -f 1)"

debug_log "- going through several cycles of umounts to clear everything left"
umount_all /run2
detach_free_loops
umount_all /run2
detach_free_loops
umount_all /run2

# eject cdrom device if we were running from it
for i in $(cat /proc/sys/dev/cdrom/info | grep name); do
   if [ "$DEVICE" = "/dev/$i" ]; then
      echo "[  OK  ] Attemptiong to eject /dev/$i..."
      eject /dev/$i
      echo "[  OK  ] CD/DVD tray will close in 6 seconds..."
      sleep 6
      eject -t /dev/$i
   fi
done

debug_shell

debug_log $1 -f
$1 -f

debug_log reboot -f
reboot -f

echo We should never reach so far. Something is totally fucked up.
echo Here you have a shell, to experiment with the universe.
/bin/sh
Here is what I added to rc.6 right before rc.local_shutdown gets called

# Run any local Slax shutdown scripts:
if [ -x /run/initramfs/shutdown ]; then
/run/initramfs/shutdown
fi


Originally it should say "stop" after "/run/initramfs/shutdown"
If I edit out the stop parameter it shutsdown/reboots very quick
If I add the parameter "stop" it continues on with rc.6 script..
Either way it now works and no more errors on fat32!

NOTE: Linux-live-kit is made for Debian with systemd so I think that's the problem, though fixed for now
 
Old 06-16-2019, 03:29 PM   #79
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,534

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
When will you finally change your signature text? I do not have to see proof all the time, of the fact that religious people are warmongers. It gets insulting, really.
 
Old 06-16-2019, 03:55 PM   #80
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
too bad for you, try counseling?
What does any of that have to do with anything?

Last edited by linus72; 06-16-2019 at 04:02 PM.
 
1 members found this post helpful.
Old 06-17-2019, 12:29 PM   #81
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,478

Original Poster
Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Ok I have the new iso uploaded which doesn't have anymore fat32 errors when running persistent

Slackerc-current-061719-x86_64.iso
https://sourceforge.net/projects/sla...acker-current/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcing Linux-Live-Kit x86_64 Debian Stretch Live XFCE MultiDistro Remasterable/Persistent HDD/USB linus72 Debian 6 04-22-2019 09:05 PM
Slackware 14.1 + XFCE4 - xfce4-notifyd and volume controls Freaksta Slackware 1 08-10-2014 10:00 AM
LXer: G+ "Lets Talk About It" Sunday Featuring Special Guest Dietrich Schmitz LXer Syndicated Linux News 0 04-09-2013 07:30 PM
Script driven Ubuntu 9.10 builds Featuring e17-svn and LXDE ready for download! linus72 Linux - General 38 08-22-2010 04:15 PM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration