AB9IL / linux-clone

Clone a Linux filesystem and install grub bootloader to any partition you select.
GNU General Public License v3.0
0 stars 1 forks source link

Skywave LiveCD after cloning to HDD is still RO #1

Open Szewcson opened 1 year ago

Szewcson commented 1 year ago

Can't upgrade cloned system.

Szewcson commented 1 year ago

Sorry, I jus realize that there was 2 new commits since I last try to install skywave. I will try toomorow if now it works.

Szewcson commented 1 year ago

Ok, still system after cloning is in ro and can't be upgraded. Now also X not working. Don't know maybe my change with mounting /sys causing the problem but without it chrooted system can't see system partition.

AB9IL commented 1 year ago

Hello Szewcson, What error message do you get when X fails to run?

Szewcson commented 1 year ago
xset:  unable yo open display ""
xset:  unable yo open display ""
xset:  unable yo open display ""

and after startx:

xauth:  error in locking authority file /home/skywave/.Xauthority
xauth:  error in locking authority file /home/skywave/.Xauthority
(EE)
Fatal server errorr:
(EE)  Cannot move old log file "/home/skywave/.local/share/xorg/Xorg.0.log" to "/home/skywave/.local/share/xorg/Xorg.0.log.old"
(EE)
(EE)
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth:  error in locking authority file /home/skywave/.Xauthority
Szewcson commented 1 year ago

I'm using skywave 4.3.0 flashback since I have some problems with i3 in vm.

AB9IL commented 1 year ago

Those messages resemble the sequence sent from the system if the home folder and its contents are owned by root . If you can get a working prompt as root or chroot into the system, use "chown -R" to set the home folder ownership to your regular user:

chown -R skywave:skywave /home/skywave

Edit: /home is owned by root, but users own their own directories. So if you create a new user named "joe" then /home/joe is owned by joe (and the group for it is also "joe").

Szewcson commented 1 year ago

Ok, I will check it but I think it should be handled by script during chroot. I think that adding user creation and changing root password will be good feature.

Szewcson commented 1 year ago

I tried from console and got many errors that fs is ro. Then I tried using chroot but after boot everything was the same.