site  contact  subhomenews

Bugs in EasyOS 1.0.11

March 08, 2019 — BarryK

EDIT 20190309: BUGS FIXED!
The two bugs described here have been fixed, and 1.0.11 release re-uploaded.
 

We have already found a couple of bugs in 1.0.11. I will add to this list as more are found, as quick reference.

  1. UltraSNS, the new network manager, cannot handle SSIDs with space characters in them.
  2. Upgrading an existing installation is broken, requires a manual fix.

With earlier versions of Easy, the password was encrypted using the working-drive disk-identifier as the "salt" for the encryption.
For 1.0.11, I changed to using the UUID of the working-partition as the "salt".

Upgrading of an existing installation is described here:

https://easyos.org/user/easy-version-upgrade-and-downgrade.html

When you click on the initrd file and open it up, choose to manually fix it. Make sure that BOOT_SPECS has the correct UUIDs for boot-partition and working-partition -- you can use the blkid utility to find out the UUIDs, for example:

# blkid /dev/sdd1
/dev/sdd1: UUID="02EC-4B5C" TYPE="vfat"

To fix the "salt" problem, open init in a text editor, and fix this line (line 475):

    POLICY="$(echo "$PW" | e4crypt add_key -S "s:${WKG_UUID}" | tail -n 1 | cut -f 2 -d '[' | cut -f 1 -d ']')"

Variable ${WKG_UUID} will need to be replaced with the disk-identifier of the working-drive. Let's say that you working-partition is in drive sdd, so run fdisk:

# fdisk -l /dev/sdd
Disk /dev/sdd: 28.7 GiB, 30752636928 bytes, 60063744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x66fffcf7

Device Boot Start End Sectors Size Id Type
/dev/sdd1 * 2048 1310719 1308672 639M ef EFI (FAT-12/16/32)
/dev/sdd2 1310720 60063743 58753024 28G 83 Linux

Then what that line needs to become:

    POLICY="$(echo "$PW" | e4crypt add_key -S "s:0x66fffcf7" | tail -n 1 | cut -f 2 -d '[' | cut -f 1 -d ']')"

Then click on initrd to update it.

I need to figure out a more permanent string for the "salt".

Tags: easy