PostmarketOS su Lenovo
https://wiki.postmarketos.org/wiki/Pmbootstrap
$ git clone https://gitlab.postmarketos.org/postmar ... tstrap.git
$ cd pmbootstrap
$ mkdir -p ~/.local/bin
$ ln -s "$PWD/pmbootstrap.py" ~/.local/bin/pmbootstrap
$ pmbootstrap --version
3.1.0
PATH="$HOME/.local/bin:$PATH"
pmbootstrap init
Work path [/home/abosco/.local/var/pmbootstrap]:
Channel [v24.06]:
Vendor [generic]:
Device codename [x86_64]
Username [xxxxx]
Provider [default]: wpa_supplicant: Use wpa_supplicant as the WiFi backend. (default)
User interface [gnome-mobile]:
Change them? (y/n) [n]
Extra packages [none]:
Use this timezone instead of GMT? (y/n) [y]: Europe/Rome
Locale [it_IT]:
Device hostname (short form, e.g. 'foo') [lenovo]
Build outdated packages during 'pmbootstrap install'? (y/n) [y]:
Zap existing chroots to apply configuration? (y/n) [y]:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223,6G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 513M 0 part /boot/efi
├─sda3 8:3 0 54,9G 0 part /
└─sda4 8:4 0 168,1G 0 part /home
sdb 8:16 1 7,4G 0 disk
└─sdb1 8:17 1 7,4G 0 part
sr0 11:0 1 1024M 0 rom
pmbootstrap install --sdcard=/dev/sdb
10:16:38] *** (1/4) PREPARE NATIVE CHROOT ***
[10:16:39] Download http://dl-cdn.alpinelinux.org/alpine/v3 ... 4.4-r1.apk
[10:16:41] (native) Creating chroot
[10:16:48] (native) install cryptsetup util-linux parted
[10:16:54] *** (2/4) CREATE DEVICE ROOTFS ("generic-x86_64") ***
[10:16:55] (rootfs_generic-x86_64) Creating chroot
[10:17:02] (rootfs_generic-x86_64) install postmarketos-base device-generic-x86_64 postmarketos-ui-gnome-mobile device-generic-x86_64-kernel-edge lang musl-locales postmarketos-base-nofde firmware-ath6kl firmware-b43xx linux-firmware oem-amd oem-intel calls chatty gnome-extensions-app mobile-config-firefox portfolio postmarketos-default-camera postmarketos-tweaks postmarketos-welcome postprocessd ttyescape gnome-mobile-extensions-app gnome-mobile-extensions-app evince firefox-esr flatpak font-noto font-noto-emoji gnome-calculator gnome-calendar gnome-clocks gnome-console gnome-contacts gnome-maps gnome-software gnome-software-plugin-apk gnome-text-editor gnome-weather lollypop loupe font-twemoji
[10:29:21] (rootfs_generic-x86_64) install device-generic-x86_64 device-generic-x86_64-kernel-edge
[10:29:22] (rootfs_generic-x86_64) install postmarketos-mkinitfs
[10:29:23] (rootfs_generic-x86_64) mkinitfs edge
[10:29:27] *** SET LOGIN PASSWORD FOR: 'xxxxx' ***
New password:
Retype new password:
passwd: password updated successfully
[10:29:38] NOTE: No valid keymap specified for device
[10:29:45] *** (3/4) PREPARE INSTALL BLOCKDEVICE ***
[10:29:46] (native) mount /dev/install (host: /dev/sdb)
[10:29:46] EVERYTHING ON /dev/sdb WILL BE ERASED! CONTINUE? (y/n) [n]: y
[10:29:55] (native) partition /dev/install (boot: 256M, reserved: 0M, root: the rest)
[10:29:56] Mounting partitions of /dev/sdb inside the chroot
[10:29:56] (native) install e2fsprogs
[10:29:57] (native) format /dev/installp2 (root, ext4)
[10:30:07] (native) mount /dev/installp2 to /mnt/install
[10:30:07] (native) install dosfstools
[10:30:08] (native) format /dev/installp1 (boot, fat32), mount to /mnt/install/boot
[10:30:10] (native) create /etc/fstab
[10:30:10] (rootfs_generic-x86_64) mkinitfs
[10:30:14] *** (4/4) FILL INSTALL BLOCKDEVICE ***
[10:30:14] (native) copy rootfs_generic-x86_64 to /mnt/install/
[10:35:41] Unmounting disk /dev/sdb (this may take a while to sync, please wait)
[10:37:00]
[10:37:00] *** FLASHING INFORMATION ***
[10:37:00] Refer to the installation instructions of your device, or the generic install instructions in the wiki.
[10:37:00] https://wiki.postmarketos.org/wiki/Inst ... trap_flash
[10:37:00]
[10:37:00] *** SSH DAEMON INFORMATION ***
[10:37:00] SSH daemon is enabled (disable with --no-sshd).
[10:37:00] Login as 'abosco' with the password given during installation.
[10:37:00]
[10:37:00] *** FIREWALL INFORMATION ***
[10:37:00] Firewall is enabled, but will not work (no support in kernel config for nftables).
[10:37:00] If/when the kernel supports it in the future, it will work automatically.
[10:37:00] For more information: https://postmarketos.org/firewall
[10:37:00]
[10:37:00] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[10:37:00] DONE!
DeAndroidizzazione
-
- Site Admin
- Messaggi: 202
- Iscritto il: gio giu 15, 2023 10:59 am
-
- Site Admin
- Messaggi: 202
- Iscritto il: gio giu 15, 2023 10:59 am
Re: DeAndroidizzazione
copia da usb a disco
https://wiki.postmarketos.org/wiki/Leno ... ga-slim7x)
$ efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0002,0001,2002,2003,2001
Boot0000* manjaro
Boot0001* EFI PXE 0 for IPv4 (80-FA-5B-8C-59-E9)
Boot0002* Arch Linux EFISTUB
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
# sudo efibootmgr --bootnext 2001 && systemctl reboot
https://wiki.postmarketos.org/wiki/Leno ... ga-slim7x)
$ efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0002,0001,2002,2003,2001
Boot0000* manjaro
Boot0001* EFI PXE 0 for IPv4 (80-FA-5B-8C-59-E9)
Boot0002* Arch Linux EFISTUB
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
# sudo efibootmgr --bootnext 2001 && systemctl reboot
Nello