Author Topic: sparky-aptus-upgrade thinks it is a Live system!  (Read 748 times)

Offline eightbit

  • Newbie
  • *
  • Posts: 49
sparky-aptus-upgrade thinks it is a Live system!
« on: May 06, 2016, 03:17:51 am »
I think it has something to do with the live backup I made using Systemback of my custom Sparky. But it is not live anymore. It has been installed for quite some time. Normal sudo apt-get upgrade and dist-upgrade work fine. But when I run the Sparky updater I get "It's a Live System! Install Sparky on a hard drive and then upgrade it. Exiting now..."

Even tho it is installed, the updater thinks it is a live system. Any idea how this can be corrected?

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #1 on: May 06, 2016, 03:03:21 pm »
I don't know the Systemback and don't know how is it work.
Looks like (I guess) it added 'live' user to the backup iso so the user still exist after installation on a hard drive.
Sparky Backup Sys doesn't add it, just create (on the fly) the live user using live scripts.

To find out what is going on, show me:
Code: [Select]
cat /etc/passwd | grep 1000
cat /etc/passwd | grep 1001
cat /etc/passwd | grep 1002
cat /etc/passwd | grep live
cat /etc/passwd | grep Live
« Last Edit: May 06, 2016, 03:05:23 pm by pavroo »
Nothing is easy as it looks.

Offline eightbit

  • Newbie
  • *
  • Posts: 49
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #2 on: May 06, 2016, 11:03:20 pm »
I think you may be on to something. I will certainly reply with the outputs in this post when I get home from work later tonight. Thank you for your assistance with this!

EDIT:

Ok, ran all of the cat commands and only one gave me an output:

bruce@eightbit:~$ cat /etc/passwd | grep 1000
bruce@eightbit:~$ cat /etc/passwd | grep 1001
bruce:x:1001:1001:Bruce,,,:/home/bruce:/bin/bash
bruce@eightbit:~$ cat /etc/passwd | grep 1002
bruce@eightbit:~$ cat /etc/passwd | grep live
bruce@eightbit:~$ cat /etc/passwd | grep Live
« Last Edit: May 07, 2016, 06:58:12 am by eightbit »

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #3 on: May 07, 2016, 04:47:32 pm »
The live installer creates new user using the first available ID: 1000
Yours 1000 is empty so it says it wasn't during installation.

The second thing is about detecting the live user in the sparky-aptus-upgrade tool.
I changed it so upgrade the tool (up to version 0.2.1):
Code: [Select]
sudo apt-get update
sudo apt-get install sparky-aptus-upgrade
Then run the Upgrade System tool normaly and let me know did it help.
Nothing is easy as it looks.

Offline eightbit

  • Newbie
  • *
  • Posts: 49
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #4 on: May 07, 2016, 08:55:35 pm »
It works now! Thank you so much for the help!

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #5 on: May 07, 2016, 09:16:16 pm »
Cool :)
Nothing is easy as it looks.

Offline eightbit

  • Newbie
  • *
  • Posts: 49
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #6 on: May 07, 2016, 09:46:59 pm »
Now sparky-backup-sys does the same thing (I am testing it instead of systemback). I am assuming it is the same issue...

ANd sparky-firstrun does nothing when launched. I wonder if this is also this user issue?
« Last Edit: May 07, 2016, 09:51:19 pm by eightbit »

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #7 on: May 07, 2016, 10:28:24 pm »
I am not sure what is wrong, but looks like the live installer created a new user with ID different than 1000, because the live user still has ID 1000.
Show me the installation log:
/var/log/live-installer.log
or
/var/log/sparkylinux-installer.log
and the sparkybackup log:
/home/sparkybackup-sys/sparkybackup-sys/sparkybackup.log

The sparky-firstrun has been updated to version 0.1.10 to fix it too.
« Last Edit: May 07, 2016, 10:56:59 pm by pavroo »
Nothing is easy as it looks.

Offline eightbit

  • Newbie
  • *
  • Posts: 49
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #8 on: May 07, 2016, 11:05:00 pm »
None of those logs exist. It looks like systemback created the installer differently.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1463
    • SparkyLinux
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #9 on: May 07, 2016, 11:06:53 pm »
Anyway, the sparky-firstrun is upgraded too so install the latest version to be working well in the new iso image.

The 'live-installer.log' and 'sparkylinux-installer.log' will be placed in the new installed system.
If you used sparky-backup sys to create an iso image, the log will be placed in the present system.
« Last Edit: May 07, 2016, 11:09:15 pm by pavroo »
Nothing is easy as it looks.

Offline eightbit

  • Newbie
  • *
  • Posts: 49
Re: sparky-aptus-upgrade thinks it is a Live system!
« Reply #10 on: May 07, 2016, 11:24:13 pm »
I see. Thank you for all of your help once again!