Porteus Nemesis v3.3 BUG REPORTS

Arch based Porteus community project

Moderator: M. Eerie

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#46 by Ed_P » 27 Nov 2015, 02:13

brokenman wrote:The advice given was referring to using the config file at /mnt/sdXy/config/network to set up your network. It uses nmcli to configure the network at boot time. It works for both wifi and wired.
francois wrote:@ed:
You need to change eth0 to wlan0 in the /config/network file.
Unfortunately :(

Code: Select all

guest ~ $ ls /mnt/
live  sda1  sda2  sda3  sda5  sda6
guest ~ $ ls /mnt/live/config/
ls: cannot access /mnt/live/config/: No such file or directory
guest ~ $ ls /mnt/sda1/config/
ls: cannot access /mnt/sda1/config/: No such file or directory
guest ~ $ ls /mnt/sda2/config/
ls: cannot access /mnt/sda2/config/: No such file or directory
guest ~ $ ls /mnt/sda3/config/
ls: cannot access /mnt/sda3/config/: No such file or directory
guest ~ $ ls /mnt/sda4/config/
ls: cannot access /mnt/sda4/config/: No such file or directory
guest ~ $ ls /mnt/sda5/config/
ls: cannot access /mnt/sda5/config/: No such file or directory
guest ~ $ ls /mnt/sda6/config/
ls: cannot access /mnt/sda6/config/: No such file or directory
guest ~ $ 
New problem, it doesn't wake when opening the netbook's lid. Some kind of a colored circle on a black screen.
Last edited by Ed_P on 27 Nov 2015, 03:17, edited 2 times in total.
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#47 by brokenman » 27 Nov 2015, 02:17

What happens when users want to update certificates again? Can you recap your intentions and why you are repackin the default upstream package?

@all
After booting, please run the following and monitor your shutdown hangs.

Code: Select all

systemctl stop preshutdown
systemctl disable preshutdown
How do i become super user?
Wear your underpants on the outside and put on a cape.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#48 by beny » 27 Nov 2015, 03:38

Error mounting /dev/loop30 at /run/media/root/disk: Command-line `mount -t "squashfs" -o "uhelper=udisks2,nodev,nosuid" "/dev/loop30" "/run/media/root/disk"' exited with non-zero exit status 32: mount: /dev/loop30 is already mounted or /run/media/root/disk busy
this is the first command

systemctl disable preshutdown
Removed symlink /etc/systemd/system/multi-user.target.wants/preshutdown.service.
this is the second...

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#49 by Ed_P » 27 Nov 2015, 03:50

francois wrote:@ed:
You need to change eth0 to wlan0 in the /config/network file. Or you do it on the iso or you use the changes= cheatcode.
I would love to use the changes= cheatcode, but how does one create a save.dat file in nemesis??

As for the config file, progress. :good:

Code: Select all

guest ~ $ ls /mnt/isoloop/
ls: cannot access /mnt/isoloop/: No such file or directory
guest ~ $ su
Password: 
Failed to connect to bus: Operation not permitted
root /home/guest # ls /mnt/isoloop/
ls: cannot access /mnt/isoloop/: No such file or directory
root /home/guest # ls /mnt/
live  sda1  sda2  sda3  sda5  sda6
root /home/guest # ls /mnt/live/
bin  etc    functions  lib     mnt  porteus  root  shutdown  tmp    usr
dev  fatal  init       memory  opt  proc     run   sys       union  var
root /home/guest # ls /mnt/live/mnt/
isoloop
root /home/guest # ls /mnt/live/mnt/isoloop/
boot  config  EFI  porteus  USB_INSTALLATION.txt
root /home/guest # ls /mnt/live/mnt/isoloop/config/
keyboard  manpages  modules  mouse  network  services  time
root /home/guest # cat /mnt/live/mnt/isoloop/config/network
### Network config file.
### Options listed here will be parsed at boot.
### Options must be listed one per line without space before them.
Just need to review it and see what to change. :)
Ed

pl0ni
White ninja
White ninja
Posts: 4
Joined: 25 Nov 2015, 08:51
Distribution: Porteus
Location: Los Angeles

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#50 by pl0ni » 27 Nov 2015, 04:24

More feedback on the vbox build script:

In my previous post (viewtopic.php?f=137&t=5242#p39246) I mentioned the kernel modules are installed in a kernel subdirectory. I was mistaken. That only happens if dkms is installed, which I had installed based on Oracle's recommendation in their vbox documentation. If dkms is not necessary, then the vbox script works as is (aside from my other comments).

I also created a build script for the vbox guest additions. Thank you for your hint on using changes-time. However the kernel modules always fail to load after a reboot. The problem is that modules.dep is out-of-date and depmod needs to be run before the kernel modules are loaded. Since I don't use the changes cheatcode as I prefer to use magic folders, (which don't work yet), the modules.dep file is always old after a reboot. Adding depmod to an /etc/activate script does not help because that script is not run during boot. I think we need a systemd service that calls depmod at bootup. I don't know enough about systemd too know where and how to do that. Any pointers?
pl0ni

aus9

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#51 by aus9 » 27 Nov 2015, 04:53

@brokenman
Can you recap your intentions and why you are repackin the default upstream package?
First intention is to resolve the issue of members having two ca-certificates directories
Second intention is to offer members the ability, whether they use it or not, of disabling any certificate they desire thru a config file.
---IMHO members should not try to learn how to generate a new bundle etc
---staying with existing XZ .......members can only update certificates not disable them

There appears to be the ability in the config file to allow a member to create a sub-folder to /etc/ssl/certs
amend their config file to name it and its certs
eg
private/certname.crt

and the update script generate a new bundle for them.....Whether members should trust that private cert is up to them. But I like that flexibility.
What happens when users want to update certificates again?
Not sure have not got that far in testing. Initial testing looks promising is all I can say at this stage.

If you are now unhappy with the direction I am going let me know. I am happy to stop and just do things privately for my own selfish needs.

cheers :D

aus9

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#52 by aus9 » 27 Nov 2015, 04:58

systemctl stop preshutdown
systemctl disable preshutdown

small delay in actioning each command using changes= cheatcode.

shutdown as expected no longer has delays caused by that service. Shutdown is very fast. For me.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#53 by Ed_P » 27 Nov 2015, 06:22

Ed_P wrote:
francois wrote:@ed:
You need to change eth0 to wlan0 in the /config/network file. Or you do it on the iso or you use the changes= cheatcode.
I would love to use the changes= cheatcode, but how does one create a save.dat file in nemesis??
Ok, used Porteus 3.0 to create a save.dat file, and added it with the changes= cheatcode to the 3.3 boot menu.

Newest problem, unable to update the config/network file. It's read only!! Even when I am logged in as root. :wall:
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#54 by brokenman » 27 Nov 2015, 11:08

New problem, it doesn't wake when opening the netbook's lid. Some kind of a colored circle on a black screen.
That's the screen lock. Just type your password and hit enter.
I don't know enough about systemd too know where and how to do that. Any pointers?
Put an executable script at /etc/activate/modulename.xzm with the commands you want: depmod -A && modprobe whatever
If you are now unhappy with the direction I am going let me know. I am happy to stop and just do things privately for my own selfish needs.
Not unhappy at all. Some people will enjoy the flexibility. Probably won't merge into the base as I think only advanced users are gonna want to mess with their certificates.
Newest problem, unable to update the config/network file. It's read only!!
Yes. You are booting from a read only ISO no? In this case please edit the same config files in /etc/porteus.d and then run the boot-network* script in /usr/local/sbin
Unfortunately the easy config files in the root of the drive require a writable media. They are copied to /etc/porteus.d just in case you don't have writable media. The script in /usr/local/sbin (with the boot- prefix) run these config files. You can run them after you boot no problem.
How do i become super user?
Wear your underpants on the outside and put on a cape.

aus9

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#55 by aus9 » 27 Nov 2015, 11:18

minor bug for maybe....arc2xzm

First I attempted to download just the XZ file and run the command.
Second I used pman -S colordiff to install it
Third I repeated this command with output as follows...tmp has the XZ download

Code: Select all

root /home/guest # cd /tmp
root /tmp # arc2xzm colordiff-1.0.15-1-any.pkg.tar.xz 
colordiff-1.0.15-1-any.pkg.tar.xz is not installed.
root /tmp # ls /var/lib/pacman/local/ | grep colordiff
colordiff-1.0.15-1
Is this is a bug?

If its not a bug.....I was hoping I could use it to convert any Arch XZ into a XZM but I am impatient so will now slink away

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#56 by beny » 27 Nov 2015, 11:30

hi Ed_P i have connected a tplink dongle to my system and work out of the box in wifi mode.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#57 by beny » 27 Nov 2015, 12:11

aus9 pman -S colodiff work so you can have the xzm package in modules ready to use

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#58 by neko » 27 Nov 2015, 14:25

I did code review in order to write the "3.5. Initrd of ISO created by 'upnkernel' command".
http://forum.porteus.org/viewtopic.php? ... 788#p34856
The result as following might be my mistakes.

1. export_variables() in functions

Code: Select all

#======================================
# export_variables:
#   Injects some variables into a config file
#--------------------------------------
export_variables()
{
uep=/union/etc/porteus.conf
if [ ! `grep -o "DISTRO=" $uep` ]
then
	echo "DISTRO=porteus" >> $uep
fi
sed -i '/BOOTDEV/d' $uep
sed -i '/BASEDIR/d' $uep
sed -i '/PORTDIR/d' $uep
sed -i '/MODDIR/d' $uep
if [ "$BOOTDEV" ]
then
	echo "BOOTDEV=$BOOTDEV" >> /union/etc/porteus.conf
else
	echo "BOOTDEV=$SGNDEV" >> /union/etc/porteus.conf
fi
echo "BASEDIR=${PTH%/*}" >> /union/etc/porteus.conf
echo "PORTDIR=$PTH" >> /union/etc/porteus.conf
echo "MODDIR=$MODDIR" >> /union/etc/porteus.conf

uee=/union/etc/environment
if [ ! `grep -o "DISTRO=" $uee` ]
then
	echo "DISTRO=porteus" >> $uee
fi
sed -i '/BOOTDEV/d' $uee
sed -i '/BASEDIR/d' $uee
sed -i '/PORTDIR/d' $uee
sed -i '/MODDIR/d' $uee
if [ "$BOOTDEV" ]
then
	echo "BOOTDEV=$BOOTDEV" >> /union/etc/environment
else
	echo "BOOTDEV=$SGNDEV" >> /union/etc/environment
fi
echo "BASEDIR=${PTH%/*}" >> /union/etc/environment
echo "PORTDIR=$PTH" >> /union/etc/environment
echo "MODDIR=$MODDIR" >> /union/etc/environment
}
[before]
-------------------------
network boot
BOOTDEV=/mnt/nfs

iso boot
BOOTDEV=/mnt/isoloop

[after]
------------------------
network boot
BOOTDEV=network

iso boot
BOOTDEV=/mnt/$DEV

2. check_desktop() in functions

Code: Select all

#======================================
# check_desktop:
#   checks for desktop module in base
#   and adds a service file for systemd
# 
#--------------------------------------
check_desktop()
{
# If there is no desktop module then return
if [ `ls $PTH/base | grep -c 003` -eq 0 ]
then
	return 0;
fi

## More than one desktop and exit
if [ `ls $PTH/base/ | grep -c "003-"` -gt 1 ]
then
	return 0;
fi

dmod=`ls -1 $PTH/base/ | grep 003-`

ulss=usr/lib/systemd/system
ess=etc/systemd/system
if [ ! -d /union/$ess/multi-user.target.wants ]
then
	mkdir -p /union/$ess/multi-user.target.wants
fi

# If there is more than 1 then return
mod=${dmod##*/}
case $mod in
003-lxde.xzm | 003-fvwm.xzm )
	if [ -e /union/$ulss/lxdm.service ]
	then
		ln -s /$ulss/lxdm.service /union/$ess/multi-user.target.wants/lxdm.service
	fi
	;;
003-kde.xzm )
	if [ -e /union/$ulss/gdm.service ]
	then
		ln -s /$ulss/gdm.service /union/$ess/multi-user.target.wants/gdm.service
	fi
	;;
esac
}
[before]
-------------------------
[ -e /union/$ulss/gdm.service ] && ln -s /$ulss/lxdm.service /union/$ess/multi-user.target.wants/gdm.service

[after]
------------------------
[ -e /union/$ulss/gdm.service ] && ln -s /$ulss/gdm.service /union/$ess/multi-user.target.wants/gdm.service


3. check_firstrun() in functions

Code: Select all

#======================================
# check_firstrun:
#   checks for firstrun file in
#   $BOOTDEV/config/.firstrun and adds a
#   line to bashrc
#--------------------------------------
check_firstrun()
{
## Obviously if the firstrun tag doesn't exist then don't firstrun
if [ ! -e $SGNDEV/config/.firstrun ]
then
	return 1
fi

## If config folder is not writable there is no use of firstrun
## since we can't remove the tag file to nullify firstrun at next boot.
if [ ! -w $SGNDEV/config ]
then
	firstrun=no
	## Check if we are on virtualbox
	dmesg | grep -qi vbox
	vbox=$?
	## If we are in vbox I want to run firstrun anyway. (testing)
	if [ $vbox -eq 0 ]
	then
		firstrun=yes
	fi
else
	firstrun=yes
fi

## If firstrun exists then append to .bashrc
if [ "$firstrun" = yes ]
then
	echo "/usr/local/bin/firstrun" >> /union/root/.bashrc
fi
}
[before]
-------------------------
## Check if we are on virtualbox
vbox=`dmesg | grep -qi vbox`
## If we are in vbox I want to run firstrun anyway. (testing)
[ "$vbox" ] && firstrun=yes

[after]
-------------------------
## Check if we are on virtualbox
dmesg | grep -qi vbox
vbox=$?
## If we are in vbox I want to run firstrun anyway. (testing)
if [ $vbox -eq 0 ]
then
firstrun=yes
fi


Thanks.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#59 by beny » 27 Nov 2015, 15:14

hi brokenman after the two command at shutdown we come back to mount live error for all the modules installed.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Porteus Nemesis v3.3 BUG REPORTS

Post#60 by brokenman » 27 Nov 2015, 16:00

@aus9
I will check out arc2xzm. It should extract the package if it is installed.

@Beny
Yes the errors will return but the shutdown doesn't hang. preshutdown is a script that removes the errors by attempting to unmount everything before giving the task to systemd-shutdown. I think if it fails in any way (perhaps not returning 0) then systemd-shutdown waits for it. I have to tweak it some more. Thanks for testing.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Locked