site  contact  subhomenews

Fix install packages non-root in containers

September 13, 2025 — BarryK

I did a test of PKGget, installed Abiword inside a container, and it did not ask if want to run non-root, only went ahead and installed to run as the root user. PKGget is supposed to ask, even inside containers.

I found the cause, changed code at line 723 in /usr/local/petget/installpreview.sh:

 #20240307 cannot run non-root in container...
 ls -/INSIDE_* >/dev/null 2>&1
 NOflg=$?
 #20241124 this needs to be qualified...
 if $NOflg -eq ];then
  #20250913 fix...
  #CONTn="$(ls -1 /INSIDE_* | head -n 1 | cut -f 2- -d '_')" #ex: daedalus
  #if [ -f /.control/${CONTn}.configuration ];then
  # grep -q -F "EC_CAP_file='false'" /.control/${CONTn}.configuration
  # if [ $? -eq 0 ];then
  #  #this means container is allowed to execute chmod and chown
  #  NOflg=1
  # fi
  #fi
  grep -q -F "EC_CAP_file='false'" /.control/*.configuration 2>/dev/null
  if $? -eq ];then
   #this means container is allowed to execute chmod and chown
   NOflg=1
  fi
 fi

The next release of EasyOS will be back to using overlay filesystem. That's after I have done lots and lots of bootups on my range of computers. Probably looking at the release a couple of days away.   

Tags: easy