WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Install from a local file,lost after reboot  (Read 6219 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Install from a local file,lost after reboot
« Reply #15 on: September 05, 2016, 07:40:00 AM »
That seems to be in order, I'm really not sure why iproute2 does not load "onboot"

Edit: just a thought, but does "ls /etc/sysconfig/tcedir/optional/iproute*" show iproute2.tcz.{, dep, md5.txt}?
« Last Edit: September 05, 2016, 07:43:08 AM by Juanito »

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Install from a local file,lost after reboot
« Reply #16 on: September 05, 2016, 08:31:45 AM »
How about the output to these?

whoami
env
cat ~/.profile
ls -al /etc/sysconfig/tcedir
df -a


Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #17 on: September 05, 2016, 08:54:50 AM »
That seems to be in order, I'm really not sure why iproute2 does not load "onboot"

Edit: just a thought, but does "ls /etc/sysconfig/tcedir/optional/iproute*" show iproute2.tcz.{, dep, md5.txt}?

Code: [Select]
~$ ls /etc/sysconfig/tcedir/optional/iproute*
/etc/sysconfig/tcedir/optional/iproute2.tcz
/etc/sysconfig/tcedir/optional/iproute2.tcz.dep

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #18 on: September 05, 2016, 09:11:17 AM »
How about the output to these?

whoami
env
cat ~/.profile
ls -al /etc/sysconfig/tcedir
df -a

Code: [Select]
~$ whoami
tc

~$ env
SSH_CLIENT=192.168.122.1 46842 22
MAIL=/var/mail/tc
USER=tc
SHLVL=1
HOME=/home/tc
SSH_TTY=/dev/pts/0
PAGER=less -EM
PS1=\u@\h:\w\$
ENV=/home/tc/.ashrc
BACKUP=1
LOGNAME=tc
TERM=xterm-256color
PATH=/home/tc/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin:/etc/sysconfig/tcedir/ondemand
G_FILENAME_ENCODING=iso8859-1
LANG=C
MANPAGER=less -isR
SHELL=/bin/sh
FLWM_TITLEBAR_COLOR=58:7D:AA
PWD=/home/tc
SSH_CONNECTION=192.168.122.1 46842 192.168.122.191 22
EDITOR=vi

~$ cat ~/.profile
# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
export PATH=$HOME/.local/bin:$PATH

ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"

# Environment variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
PAGER='less -EM'
MANPAGER='less -isR'

EDITOR=vi

export PS1 PAGER FILEMGR EDITOR MANPAGER

export BACKUP=1
[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
export FLWM_TITLEBAR_COLOR="58:7D:AA"

if [ -f "$HOME/.ashrc" ]; then
   export ENV="$HOME/.ashrc"
   . "$HOME/.ashrc"
fi

TERMTYPE=`/usr/bin/tty`
[ ${TERMTYPE:5:3} == "tty" ] && (
[ ! -f /etc/sysconfig/Xserver ] ||
[ -f /etc/sysconfig/text ] ||
[ -e /tmp/.X11-unix/X0 ] ||
startx
)

~$ ls -al /etc/sysconfig/tcedir/
total 2611
drwxrwxr-x    5 tc       staff         1024 Sep  4 10:10 ./
drwxr-xr-x    4 root     root          1024 Sep  4 10:10 ../
drwxrwxr-x    3 tc       staff         1024 Sep  4 10:10 boot/
-rw-rw-r--    1 tc       staff      2666853 Sep  5 01:59 mydata.tgz
-rw-rw-r--    1 tc       staff           25 Sep  5 11:26 onboot.lst
drwxrwxr-x    2 tc       staff         1024 Sep  4 10:10 ondemand/
drwxrwxr-x    2 tc       staff         1024 Sep  5 01:35 optional/

:~$ df -a
Filesystem                Size      Used Available Use% Mounted on
rootfs                  107.9M     14.6M     93.4M  13% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
devpts                       0         0         0   0% /dev/pts
tmpfs                    60.0M         0     60.0M   0% /dev/shm
fusectl                      0         0         0   0% /sys/fs/fuse/connections
/dev/sda1                56.7M     18.8M     36.7M  34% /mnt/sda1
/dev/loop0                1.5M      1.5M         0 100% /tmp/tcloop/openssl
/dev/loop1              232.0K    232.0K         0 100% /tmp/tcloop/ncurses
/dev/loop2               92.0K     92.0K         0 100% /tmp/tcloop/libedit
/dev/loop3                2.0M      2.0M         0 100% /tmp/tcloop/openssh

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Install from a local file,lost after reboot
« Reply #19 on: September 05, 2016, 09:16:38 AM »
I don't think a missing  *.md5.txt  would cause any problems regarding extension loading but you might want to get that as well in order to get updates if available and to not confuse extension browser if an extension depends on iproute2.

Also try
Code: [Select]
sudo ldconfig
And see if  ip  works then.

Re onboot.lst, make sure the last line is an empty line.
Download a copy and keep it handy: Core book ;)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Install from a local file,lost after reboot
« Reply #20 on: September 05, 2016, 09:40:51 AM »
Are you sure you didn't truncate the df -a output? Otherwise iproute2 isn't loaded. Also, I wanted to see ls -al /etc/sysconfig/tcedir WITHOUT a trailing slash. The output will be different.

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #21 on: September 05, 2016, 09:46:10 PM »
Code: [Select]
tc@tinycorelinux01:~$ sudo ldconfig
tc@tinycorelinux01:~$ ip
-sh: ip: not found


tc@tinycorelinux01:~$ df -a
Filesystem                Size      Used Available Use% Mounted on
rootfs                  107.9M     14.6M     93.4M  13% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
devpts                       0         0         0   0% /dev/pts
tmpfs                    60.0M         0     60.0M   0% /dev/shm
fusectl                      0         0         0   0% /sys/fs/fuse/connections
/dev/sda1                56.7M     18.8M     36.7M  34% /mnt/sda1
/dev/loop0                1.5M      1.5M         0 100% /tmp/tcloop/openssl
/dev/loop1              232.0K    232.0K         0 100% /tmp/tcloop/ncurses
/dev/loop2               92.0K     92.0K         0 100% /tmp/tcloop/libedit
/dev/loop3                2.0M      2.0M         0 100% /tmp/tcloop/openssh


tc@tinycorelinux01:~$ ls -al /etc/sysconfig/tcedir
lrwxrwxrwx    1 root     root            13 Sep  6 01:34 /etc/sysconfig/tcedir -> /mnt/sda1/tce/

@andyj   I really didn't truncate the df -a output

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Install from a local file,lost after reboot
« Reply #22 on: September 05, 2016, 11:40:36 PM »
It doesn't look like iproute2 is loaded. I would expect to see loop devices mounted for it and it's dependencies. Let's try:

tce-status -i
ls -al /etc/sysconfig/tcedir/optional

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #23 on: September 06, 2016, 03:21:43 AM »
Code: [Select]
~$ tce-status -i
db
libedit
ncurses
openssh
openssl

~$ ls -al /etc/sysconfig/tcedir/optional/
total 4867
drwxrwxr-x    2 tc       staff         1024 Sep  5 01:35 ./
drwxrwxr-x    5 tc       staff         1024 Sep  4 10:10 ../
-rw-rw-r--    1 tc       staff       537258 Sep  4 13:09 db.tcz
-rw-rw-r--    1 tc       staff           41 Sep  4 12:07 db.tcz.md5.txt
-rw-rw-r--    1 tc       staff       483328 Sep  5 01:35 iproute2.tcz
-rw-rw-r--    1 tc       staff            7 Sep  4 13:08 iproute2.tcz.dep
-rw-rw-r--    1 tc       staff        94208 Sep  4 10:18 libedit.tcz
-rw-rw-r--    1 tc       staff           12 Sep  4 10:15 libedit.tcz.dep
-rw-rw-r--    1 tc       staff           46 Sep  4 10:16 libedit.tcz.md5.txt
-rw-rw-r--    1 tc       staff       237568 Sep  4 10:16 ncurses.tcz
-rw-rw-r--    1 tc       staff           46 Sep  4 10:16 ncurses.tcz.md5.txt
-rw-rw-r--    1 tc       staff      2093056 Sep  4 10:22 openssh.tcz
-rw-rw-r--    1 tc       staff           24 Sep  4 10:18 openssh.tcz.dep
-rw-rw-r--    1 tc       staff           46 Sep  4 10:18 openssh.tcz.md5.txt
-rw-rw-r--    1 tc       staff      1527808 Sep  4 10:16 openssl.tcz
-rw-rw-r--    1 tc       staff           46 Sep  4 10:15 openssl.tcz.md5.txt

what does 'tce-status -i' mean?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Install from a local file,lost after reboot
« Reply #24 on: September 06, 2016, 03:34:48 AM »
"tce-status -i" shows which extensions are loaded.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Install from a local file,lost after reboot
« Reply #25 on: September 06, 2016, 06:34:27 AM »
ip isn't working because iproute2 isn't loaded. There's probably a message during the boot process that tells you why. Edit /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf and add the word pause to the end of the line labeled APPEND. Save and reboot.

Offline someone

  • Newbie
  • *
  • Posts: 15
Re: Install from a local file,lost after reboot
« Reply #26 on: September 06, 2016, 08:13:17 AM »
ip isn't working because iproute2 isn't loaded. There's probably a message during the boot process that tells you why. Edit /etc/sysconfig/tcedir/boot/extlinux/extlinux.conf and add the word pause to the end of the line labeled APPEND. Save and reboot.

no message,everything looks ok

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Install from a local file,lost after reboot
« Reply #27 on: September 06, 2016, 05:18:40 PM »
Hi someone

Quote
~$ tce-status -i
db
libedit
ncurses
openssh
openssl

Quote
no message,everything looks ok

Not Ok because as previously mentioned the above status report doesn't show iproute2 being loaded

try tce-load -i iproute2

then be sure to add iproute2 to your "onboot.lst" before next reboot

:)