Android Recovery Zip Mount Root Partition Failed
Created by: fooforever
I've just pulled in the master to my local branch that I'm working on for the HTC M8. I zapped everything and ran install with --no-fde and --android-recovery-zip then ADB sideloaded the zip. The install script gets as far as mounting root partition, then I get failed error 1. Here's the log from /tmp/postmarketos on the device:
+ export CHROOT=/tmp/postmarketos/chroot
+ unzip -o /sideload/package.zip chroot/* -d /tmp/postmarketos
Archive: /sideload/package.zip
inflating: chroot/lib/libjson-c.so.2
inflating: chroot/lib/libcom_err.so.2.1
inflating: chroot/lib/libe2p.so.2
inflating: chroot/lib/libargon2.so.1
inflating: chroot/lib/libcrypto.so.42.0.0
inflating: chroot/lib/libreadline.so.7.0
inflating: chroot/lib/libblkid.so.1
inflating: chroot/lib/libcryptsetup.so.12
inflating: chroot/lib/libjson-c.so.2.0.2
inflating: chroot/lib/libext2fs.so.2
inflating: chroot/lib/libmount.so.1.1.0
inflating: chroot/lib/libuuid.so.1
inflating: chroot/lib/libmount.so.1
inflating: chroot/lib/libdevmapper.so.1.02
inflating: chroot/lib/libc.musl-armhf.so.1
inflating: chroot/lib/libuuid.so.1.3.0
inflating: chroot/lib/libe2p.so.2.3
inflating: chroot/lib/libparted.so.2.0.1
inflating: chroot/lib/libpopt.so.0.0.0
inflating: chroot/lib/libcryptsetup.so.12.2.0
inflating: chroot/lib/ld-musl-armhf.so.1
inflating: chroot/lib/libncursesw.so.6.0
inflating: chroot/lib/libcrypto.so.42
inflating: chroot/lib/libncursesw.so.6
inflating: chroot/lib/libext2fs.so.2.4
inflating: chroot/lib/libblkid.so.1.1.0
inflating: chroot/lib/libpopt.so.0
inflating: chroot/lib/libcom_err.so.2
inflating: chroot/lib/libparted.so.2
inflating: chroot/lib/libreadline.so.7
inflating: chroot/bin/partprobe
inflating: chroot/bin/findfs
inflating: chroot/bin/tar
inflating: chroot/bin/pmos_install
inflating: chroot/bin/pmos_install_functions
inflating: chroot/bin/umount
inflating: chroot/bin/mkfs.ext4
inflating: chroot/bin/pmos_setpw
inflating: chroot/bin/parted
inflating: chroot/bin/busybox
inflating: chroot/bin/kpartx
inflating: chroot/bin/cryptsetup
inflating: chroot/bin/mkfs.ext2
inflating: chroot/install_options
+ . /tmp/postmarketos/chroot/install_options
+ DEVICE=htc-m8
+ FLAVOR=htc-m8
+ FLASH_KERNEL=true
+ ISOREC=false
+ KERNEL_PARTLABEL=KERNEL
+ INITFS_PARTLABEL=RECOVERY
+ SYSTEM_PARTLABEL=system
+ INSTALL_PARTITION=system
+ CIPHER=aes-cbc-plain64
+ FDE=false
+ [ false = true ]
+ umount /tmp/postmarketos/chroot/pmos.log
+ rm /tmp/postmarketos/chroot/pmos.log
+ touch /tmp/postmarketos/chroot/pmos.log
+ umount /tmp/postmarketos/chroot/pmos.zip
+ rm /tmp/postmarketos/chroot/pmos.zip
+ touch /tmp/postmarketos/chroot/pmos.zip
+ mount --bind /tmp/postmarketos/pmos.log /tmp/postmarketos/chroot/pmos.log
+ mount --bind /sideload/package.zip /tmp/postmarketos/chroot/pmos.zip
+ cp /etc/recovery.fstab /tmp/postmarketos/chroot/recovery.fstab
+ mkdir -p /tmp/postmarketos/chroot/dev
+ mount --bind /dev /tmp/postmarketos/chroot/dev
+ mkdir -p /tmp/postmarketos/chroot/proc
+ mount --bind /proc /tmp/postmarketos/chroot/proc
+ mkdir -p /tmp/postmarketos/chroot/sys
+ mount --bind /sys /tmp/postmarketos/chroot/sys
+ chmod 755 /tmp/postmarketos/chroot/bin/[ /tmp/postmarketos/chroot/bin/[[ /tmp/postmarketos/chroot/bin/acpid /tmp/postmarketos/chroot/bin/add-shell /tmp/postmarketos/chroot/bin/addgroup /tmp/postmarketos/chroot/bin/adduser /tmp/postmarketos/chroot/bin/adjtimex /tmp/postmarketos/chroot/bin/arch /tmp/postmarketos/chroot/bin/arp /tmp/postmarketos/chroot/bin/arping /tmp/postmarketos/chroot/bin/ash /tmp/postmarketos/chroot/bin/awk /tmp/postmarketos/chroot/bin/base64 /tmp/postmarketos/chroot/bin/basename /tmp/postmarketos/chroot/bin/bbconfig /tmp/postmarketos/chroot/bin/beep /tmp/postmarketos/chroot/bin/blkdiscard /tmp/postmarketos/chroot/bin/blkid /tmp/postmarketos/chroot/bin/blockdev /tmp/postmarketos/chroot/bin/brctl /tmp/postmarketos/chroot/bin/bunzip2 /tmp/postmarketos/chroot/bin/busybox /tmp/postmarketos/chroot/bin/bzcat /tmp/postmarketos/chroot/bin/bzip2 /tmp/postmarketos/chroot/bin/cal /tmp/postmarketos/chroot/bin/cat /tmp/postmarketos/chroot/bin/chgrp /tmp/postmarketos/chroot/bin/chmod /tmp/postmarketos/chroot/bin/chown /tmp/postmarketos/chroot/bin/chpasswd /tmp/postmarketos/chroot/bin/chroot /tmp/postmarketos/chroot/bin/chvt /tmp/postmarketos/chroot/bin/cksum /tmp/postmarketos/chroot/bin/clear /tmp/postmarketos/chroot/bin/cmp /tmp/postmarketos/chroot/bin/comm /tmp/postmarketos/chroot/bin/conspy /tmp/postmarketos/chroot/bin/cp /tmp/postmarketos/chroot/bin/cpio /tmp/postmarketos/chroot/bin/crond /tmp/postmarketos/chroot/bin/crontab /tmp/postmarketos/chroot/bin/cryptpw /tmp/postmarketos/chroot/bin/cryptsetup /tmp/postmarketos/chroot/bin/cut /tmp/postmarketos/chroot/bin/date /tmp/postmarketos/chroot/bin/dc /tmp/postmarketos/chroot/bin/dd /tmp/postmarketos/chroot/bin/deallocvt /tmp/postmarketos/chroot/bin/delgroup /tmp/postmarketos/chroot/bin/deluser /tmp/postmarketos/chroot/bin/depmod /tmp/postmarketos/chroot/bin/df /tmp/postmarketos/chroot/bin/diff /tmp/postmarketos/chroot/bin/dirname /tmp/postmarketos/chroot/bin/dmesg /tmp/postmarketos/chroot/bin/dnsdomainname /tmp/postmarketos/chroot/bin/dos2unix /tmp/postmarketos/chroot/bin/du /tmp/postmarketos/chroot/bin/dumpkmap /tmp/postmarketos/chroot/bin/dumpleases /tmp/postmarketos/chroot/bin/echo /tmp/postmarketos/chroot/bin/ed /tmp/postmarketos/chroot/bin/egrep /tmp/postmarketos/chroot/bin/eject /tmp/postmarketos/chroot/bin/env /tmp/postmarketos/chroot/bin/ether-wake /tmp/postmarketos/chroot/bin/expand /tmp/postmarketos/chroot/bin/expr /tmp/postmarketos/chroot/bin/factor /tmp/postmarketos/chroot/bin/fallocate /tmp/postmarketos/chroot/bin/false /tmp/postmarketos/chroot/bin/fatattr /tmp/postmarketos/chroot/bin/fbset /tmp/postmarketos/chroot/bin/fbsplash /tmp/postmarketos/chroot/bin/fdflush /tmp/postmarketos/chroot/bin/fdformat /tmp/postmarketos/chroot/bin/fdisk /tmp/postmarketos/chroot/bin/fgrep /tmp/postmarketos/chroot/bin/find /tmp/postmarketos/chroot/bin/findfs /tmp/postmarketos/chroot/bin/flock /tmp/postmarketos/chroot/bin/fold /tmp/postmarketos/chroot/bin/free /tmp/postmarketos/chroot/bin/fsck /tmp/postmarketos/chroot/bin/fstrim /tmp/postmarketos/chroot/bin/fsync /tmp/postmarketos/chroot/bin/fuser /tmp/postmarketos/chroot/bin/getopt /tmp/postmarketos/chroot/bin/getty /tmp/postmarketos/chroot/bin/grep /tmp/postmarketos/chroot/bin/groups /tmp/postmarketos/chroot/bin/gunzip /tmp/postmarketos/chroot/bin/gzip /tmp/postmarketos/chroot/bin/halt /tmp/postmarketos/chroot/bin/hd /tmp/postmarketos/chroot/bin/hdparm /tmp/postmarketos/chroot/bin/head /tmp/postmarketos/chroot/bin/hexdump /tmp/postmarketos/chroot/bin/hostid /tmp/postmarketos/chroot/bin/hostname /tmp/postmarketos/chroot/bin/hwclock /tmp/postmarketos/chroot/bin/id /tmp/postmarketos/chroot/bin/ifconfig /tmp/postmarketos/chroot/bin/ifdown /tmp/postmarketos/chroot/bin/ifenslave /tmp/postmarketos/chroot/bin/ifup /tmp/postmarketos/chroot/bin/init /tmp/postmarketos/chroot/bin/inotifyd /tmp/postmarketos/chroot/bin/insmod /tmp/postmarketos/chroot/bin/install /tmp/postmarketos/chroot/bin/ionice /tmp/postmarketos/chroot/bin/iostat /tmp/postmarketos/chroot/bin/ip /tmp/postmarketos/chroot/bin/ipaddr /tmp/postmarketos/chroot/bin/ipcalc /tmp/postmarketos/chroot/bin/ipcrm /tmp/postmarketos/chroot/bin/ipcs /tmp/postmarketos/chroot/bin/iplink /tmp/postmarketos/chroot/bin/ipneigh /tmp/postmarketos/chroot/bin/iproute /tmp/postmarketos/chroot/bin/iprule /tmp/postmarketos/chroot/bin/iptunnel /tmp/postmarketos/chroot/bin/kbd_mode /tmp/postmarketos/chroot/bin/kill /tmp/postmarketos/chroot/bin/killall /tmp/postmarketos/chroot/bin/killall5 /tmp/postmarketos/chroot/bin/klogd /tmp/postmarketos/chroot/bin/kpartx /tmp/postmarketos/chroot/bin/less /tmp/postmarketos/chroot/bin/link /tmp/postmarketos/chroot/bin/linux32 /tmp/postmarketos/chroot/bin/linux64 /tmp/postmarketos/chroot/bin/ln /tmp/postmarketos/chroot/bin/loadfont /tmp/postmarketos/chroot/bin/loadkmap /tmp/postmarketos/chroot/bin/logger /tmp/postmarketos/chroot/bin/login /tmp/postmarketos/chroot/bin/logread /tmp/postmarketos/chroot/bin/losetup /tmp/postmarketos/chroot/bin/ls /tmp/postmarketos/chroot/bin/lsmod /tmp/postmarketos/chroot/bin/lsof /tmp/postmarketos/chroot/bin/lspci /tmp/postmarketos/chroot/bin/lsusb /tmp/postmarketos/chroot/bin/lzcat /tmp/postmarketos/chroot/bin/lzma /tmp/postmarketos/chroot/bin/lzop /tmp/postmarketos/chroot/bin/lzopcat /tmp/postmarketos/chroot/bin/makemime /tmp/postmarketos/chroot/bin/md5sum /tmp/postmarketos/chroot/bin/mdev /tmp/postmarketos/chroot/bin/mesg /tmp/postmarketos/chroot/bin/microcom /tmp/postmarketos/chroot/bin/mkdir /tmp/postmarketos/chroot/bin/mkdosfs /tmp/postmarketos/chroot/bin/mkfifo /tmp/postmarketos/chroot/bin/mkfs.ext2 /tmp/postmarketos/chroot/bin/mkfs.ext4 /tmp/postmarketos/chroot/bin/mkfs.vfat /tmp/postmarketos/chroot/bin/mknod /tmp/postmarketos/chroot/bin/mkpasswd /tmp/postmarketos/chroot/bin/mkswap /tmp/postmarketos/chroot/bin/mktemp /tmp/postmarketos/chroot/bin/modinfo /tmp/postmarketos/chroot/bin/modprobe /tmp/postmarketos/chroot/bin/more /tmp/postmarketos/chroot/bin/mount /tmp/postmarketos/chroot/bin/mountpoint /tmp/postmarketos/chroot/bin/mpstat /tmp/postmarketos/chroot/bin/mv /tmp/postmarketos/chroot/bin/nameif /tmp/postmarketos/chroot/bin/nanddump /tmp/postmarketos/chroot/bin/nandwrite /tmp/postmarketos/chroot/bin/nbd-client /tmp/postmarketos/chroot/bin/nc /tmp/postmarketos/chroot/bin/netstat /tmp/postmarketos/chroot/bin/nice /tmp/postmarketos/chroot/bin/nl /tmp/postmarketos/chroot/bin/nmeter /tmp/postmarketos/chroot/bin/nohup /tmp/postmarketos/chroot/bin/nologin /tmp/postmarketos/chroot/bin/nproc /tmp/postmarketos/chroot/bin/nsenter /tmp/postmarketos/chroot/bin/nslookup /tmp/postmarketos/chroot/bin/ntpd /tmp/postmarketos/chroot/bin/od /tmp/postmarketos/chroot/bin/openvt /tmp/postmarketos/chroot/bin/parted /tmp/postmarketos/chroot/bin/partprobe /tmp/postmarketos/chroot/bin/passwd /tmp/postmarketos/chroot/bin/paste /tmp/postmarketos/chroot/bin/patch /tmp/postmarketos/chroot/bin/pgrep /tmp/postmarketos/chroot/bin/pidof /tmp/postmarketos/chroot/bin/ping /tmp/postmarketos/chroot/bin/ping6 /tmp/postmarketos/chroot/bin/pipe_progress /tmp/postmarketos/chroot/bin/pkill /tmp/postmarketos/chroot/bin/pmap /tmp/postmarketos/chroot/bin/pmos_install /tmp/postmarketos/chroot/bin/pmos_install_functions /tmp/postmarketos/chroot/bin/pmos_setpw /tmp/postmarketos/chroot/bin/poweroff /tmp/postmarketos/chroot/bin/powertop /tmp/postmarketos/chroot/bin/printenv /tmp/postmarketos/chroot/bin/printf /tmp/postmarketos/chroot/bin/ps /tmp/postmarketos/chroot/bin/pscan /tmp/postmarketos/chroot/bin/pstree /tmp/postmarketos/chroot/bin/pwd /tmp/postmarketos/chroot/bin/pwdx /tmp/postmarketos/chroot/bin/raidautorun /tmp/postmarketos/chroot/bin/rdate /tmp/postmarketos/chroot/bin/rdev /tmp/postmarketos/chroot/bin/readahead /tmp/postmarketos/chroot/bin/readlink /tmp/postmarketos/chroot/bin/readprofile /tmp/postmarketos/chroot/bin/realpath /tmp/postmarketos/chroot/bin/reboot /tmp/postmarketos/chroot/bin/reformime /tmp/postmarketos/chroot/bin/remove-shell /tmp/postmarketos/chroot/bin/renice /tmp/postmarketos/chroot/bin/reset /tmp/postmarketos/chroot/bin/resize /tmp/postmarketos/chroot/bin/rev /tmp/postmarketos/chroot/bin/rfkill /tmp/postmarketos/chroot/bin/rm /tmp/postmarketos/chroot/bin/rmdir /tmp/postmarketos/chroot/bin/rmmod /tmp/postmarketos/chroot/bin/route /tmp/postmarketos/chroot/bin/run-parts /tmp/postmarketos/chroot/bin/sed /tmp/postmarketos/chroot/bin/sendmail /tmp/postmarketos/chroot/bin/seq /tmp/postmarketos/chroot/bin/setconsole /tmp/postmarketos/chroot/bin/setfont /tmp/postmarketos/chroot/bin/setkeycodes /tmp/postmarketos/chroot/bin/setlogcons /tmp/postmarketos/chroot/bin/setpriv /tmp/postmarketos/chroot/bin/setserial /tmp/postmarketos/chroot/bin/setsid /tmp/postmarketos/chroot/bin/sh /tmp/postmarketos/chroot/bin/sha1sum /tmp/postmarketos/chroot/bin/sha256sum /tmp/postmarketos/chroot/bin/sha3sum /tmp/postmarketos/chroot/bin/sha512sum /tmp/postmarketos/chroot/bin/showkey /tmp/postmarketos/chroot/bin/shred /tmp/postmarketos/chroot/bin/shuf /tmp/postmarketos/chroot/bin/slattach /tmp/postmarketos/chroot/bin/sleep /tmp/postmarketos/chroot/bin/smemcap /tmp/postmarketos/chroot/bin/sort /tmp/postmarketos/chroot/bin/split /tmp/postmarketos/chroot/bin/ssl_client /tmp/postmarketos/chroot/bin/stat /tmp/postmarketos/chroot/bin/strings /tmp/postmarketos/chroot/bin/stty /tmp/postmarketos/chroot/bin/su /tmp/postmarketos/chroot/bin/sum /tmp/postmarketos/chroot/bin/swapoff /tmp/postmarketos/chroot/bin/swapon /tmp/postmarketos/chroot/bin/switch_root /tmp/postmarketos/chroot/bin/sync /tmp/postmarketos/chroot/bin/sysctl /tmp/postmarketos/chroot/bin/syslogd /tmp/postmarketos/chroot/bin/tac /tmp/postmarketos/chroot/bin/tail /tmp/postmarketos/chroot/bin/tar /tmp/postmarketos/chroot/bin/tee /tmp/postmarketos/chroot/bin/test /tmp/postmarketos/chroot/bin/time /tmp/postmarketos/chroot/bin/timeout /tmp/postmarketos/chroot/bin/top /tmp/postmarketos/chroot/bin/touch /tmp/postmarketos/chroot/bin/tr /tmp/postmarketos/chroot/bin/traceroute /tmp/postmarketos/chroot/bin/traceroute6 /tmp/postmarketos/chroot/bin/true /tmp/postmarketos/chroot/bin/truncate /tmp/postmarketos/chroot/bin/tty /tmp/postmarketos/chroot/bin/ttysize /tmp/postmarketos/chroot/bin/tunctl /tmp/postmarketos/chroot/bin/udhcpc /tmp/postmarketos/chroot/bin/udhcpc6 /tmp/postmarketos/chroot/bin/umount /tmp/postmarketos/chroot/bin/uname /tmp/postmarketos/chroot/bin/unexpand /tmp/postmarketos/chroot/bin/uniq /tmp/postmarketos/chroot/bin/unix2dos /tmp/postmarketos/chroot/bin/unlink /tmp/postmarketos/chroot/bin/unlzma /tmp/postmarketos/chroot/bin/unlzop /tmp/postmarketos/chroot/bin/unshare /tmp/postmarketos/chroot/bin/unxz /tmp/postmarketos/chroot/bin/unzip /tmp/postmarketos/chroot/bin/uptime /tmp/postmarketos/chroot/bin/usleep /tmp/postmarketos/chroot/bin/uudecode /tmp/postmarketos/chroot/bin/uuencode /tmp/postmarketos/chroot/bin/vconfig /tmp/postmarketos/chroot/bin/vi /tmp/postmarketos/chroot/bin/vlock /tmp/postmarketos/chroot/bin/volname /tmp/postmarketos/chroot/bin/watch /tmp/postmarketos/chroot/bin/watchdog /tmp/postmarketos/chroot/bin/wc /tmp/postmarketos/chroot/bin/wget /tmp/postmarketos/chroot/bin/which /tmp/postmarketos/chroot/bin/whoami /tmp/postmarketos/chroot/bin/whois /tmp/postmarketos/chroot/bin/xargs /tmp/postmarketos/chroot/bin/xxd /tmp/postmarketos/chroot/bin/xzcat /tmp/postmarketos/chroot/bin/yes /tmp/postmarketos/chroot/bin/zcat
+ chmod 755 /tmp/postmarketos/chroot/lib/ld-musl-armhf.so.1 /tmp/postmarketos/chroot/lib/libargon2.so.1 /tmp/postmarketos/chroot/lib/libblkid.so.1 /tmp/postmarketos/chroot/lib/libblkid.so.1.1.0 /tmp/postmarketos/chroot/lib/libc.musl-armhf.so.1 /tmp/postmarketos/chroot/lib/libcom_err.so.2 /tmp/postmarketos/chroot/lib/libcom_err.so.2.1 /tmp/postmarketos/chroot/lib/libcrypto.so.42 /tmp/postmarketos/chroot/lib/libcrypto.so.42.0.0 /tmp/postmarketos/chroot/lib/libcryptsetup.so.12 /tmp/postmarketos/chroot/lib/libcryptsetup.so.12.2.0 /tmp/postmarketos/chroot/lib/libdevmapper.so.1.02 /tmp/postmarketos/chroot/lib/libe2p.so.2 /tmp/postmarketos/chroot/lib/libe2p.so.2.3 /tmp/postmarketos/chroot/lib/libext2fs.so.2 /tmp/postmarketos/chroot/lib/libext2fs.so.2.4 /tmp/postmarketos/chroot/lib/libjson-c.so.2 /tmp/postmarketos/chroot/lib/libjson-c.so.2.0.2 /tmp/postmarketos/chroot/lib/libmount.so.1 /tmp/postmarketos/chroot/lib/libmount.so.1.1.0 /tmp/postmarketos/chroot/lib/libncursesw.so.6 /tmp/postmarketos/chroot/lib/libncursesw.so.6.0 /tmp/postmarketos/chroot/lib/libparted.so.2 /tmp/postmarketos/chroot/lib/libparted.so.2.0.1 /tmp/postmarketos/chroot/lib/libpopt.so.0 /tmp/postmarketos/chroot/lib/libpopt.so.0.0.0 /tmp/postmarketos/chroot/lib/libreadline.so.7 /tmp/postmarketos/chroot/lib/libreadline.so.7.0 /tmp/postmarketos/chroot/lib/libuuid.so.1 /tmp/postmarketos/chroot/lib/libuuid.so.1.3.0
+ chroot /tmp/postmarketos/chroot /bin/pmos_install
+ /bin/busybox --install /bin
+ . /bin/pmos_install_functions
+ export 'PATH=/bin'
+ export 'LD_LIBRARY_PATH=/lib'
+ . /install_options
+ DEVICE=htc-m8
+ FLAVOR=htc-m8
+ FLASH_KERNEL=true
+ ISOREC=false
+ KERNEL_PARTLABEL=KERNEL
+ INITFS_PARTLABEL=RECOVERY
+ SYSTEM_PARTLABEL=system
+ INSTALL_PARTITION=system
+ CIPHER=aes-cbc-plain64
+ FDE=false
+ ui_print ' '
+ echo 'ui_print '
+ echo ui_print
+ ui_print ' 8 '
+ echo 'ui_print 8 '
+ echo ui_print
+ ui_print ' 888 '
+ echo 'ui_print 888 '
+ echo ui_print
+ ui_print ' 88888 '
+ echo 'ui_print 88888 '
+ echo ui_print
+ ui_print ' 8888888 '
+ echo 'ui_print 8888888 '
+ echo ui_print
+ ui_print ' 888888888 '
+ echo 'ui_print 888888888 '
+ echo ui_print
+ ui_print ' 88888888888 '
+ echo 'ui_print 88888888888 '
+ echo ui_print
+ ui_print ' 888888888888 '
+ echo 'ui_print 888888888888 '
+ echo ui_print
+ ui_print ' 8 888888888888 '
+ echo 'ui_print 8 888888888888 '
+ echo ui_print
+ ui_print ' 888 88888888 '
+ echo 'ui_print 888 88888888 '
+ echo ui_print
+ ui_print ' 88888888 88888888 '
+ echo 'ui_print 88888888 88888888 '
+ echo ui_print
+ ui_print ' 88888888 88888888 '
+ echo 'ui_print 88888888 88888888 '
+ echo ui_print
+ ui_print ' 88888888 88888888 '
+ echo 'ui_print 88888888 88888888 '
+ echo ui_print
+ ui_print ' 88888888 88888888 '
+ echo 'ui_print 88888888 88888888 '
+ echo ui_print
+ ui_print ' 88888888 888 '
+ echo 'ui_print 88888888 888 '
+ echo ui_print
+ ui_print ' 88888888 8 88888 '
+ echo 'ui_print 88888888 8 88888 '
+ echo ui_print
+ ui_print ' 88888888 8888888 '
+ echo 'ui_print 88888888 8888888 '
+ echo ui_print
+ ui_print ' 88888888 88888888 '
+ echo 'ui_print 88888888 88888888 '
+ echo ui_print
+ ui_print ' 88888888888 8888888888888888888888 '
+ echo 'ui_print 88888888888 8888888888888888888888 '
+ echo ui_print
+ ui_print ' 8888888888888 8888888888888888888888 '
+ echo 'ui_print 8888888888888 8888888888888888888888 '
+ echo ui_print
+ ui_print ' 8888888888888 888888888888888888888888 '
+ echo 'ui_print 8888888888888 888888888888888888888888 '
+ echo ui_print
+ ui_print '8888888888888 88888888888888888888888888'
+ echo 'ui_print 8888888888888 88888888888888888888888888'
+ echo ui_print
+ ui_print ' '
+ echo 'ui_print '
+ echo ui_print
+ ui_print 'postmarketOS recovery installer '
+ echo 'ui_print postmarketOS recovery installer '
+ echo ui_print
+ ui_print ' '
+ echo 'ui_print '
+ echo ui_print
+ mountpoint -q /mnt/pmOS
+ '[' -e /dev/mapper/pm_crypt ]
+ ui_print 'Symlinking block devices...'
+ echo 'ui_print Symlinking block devices...'
+ echo ui_print
+ ln -sf /dev/block/bootdevice /dev/block/dm-0 /dev/block/dm-1 /dev/block/loop0 /dev/block/loop1 /dev/block/loop2 /dev/block/loop3 /dev/block/loop4 /dev/block/loop5 /dev/block/loop6 /dev/block/loop7 /dev/block/mmcblk0 /dev/block/mmcblk0p1 /dev/block/mmcblk0p10 /dev/block/mmcblk0p11 /dev/block/mmcblk0p12 /dev/block/mmcblk0p13 /dev/block/mmcblk0p14 /dev/block/mmcblk0p15 /dev/block/mmcblk0p16 /dev/block/mmcblk0p17 /dev/block/mmcblk0p18 /dev/block/mmcblk0p19 /dev/block/mmcblk0p2 /dev/block/mmcblk0p20 /dev/block/mmcblk0p21 /dev/block/mmcblk0p22 /dev/block/mmcblk0p23 /dev/block/mmcblk0p24 /dev/block/mmcblk0p25 /dev/block/mmcblk0p26 /dev/block/mmcblk0p27 /dev/block/mmcblk0p28 /dev/block/mmcblk0p29 /dev/block/mmcblk0p3 /dev/block/mmcblk0p30 /dev/block/mmcblk0p31 /dev/block/mmcblk0p32 /dev/block/mmcblk0p33 /dev/block/mmcblk0p34 /dev/block/mmcblk0p35 /dev/block/mmcblk0p36 /dev/block/mmcblk0p37 /dev/block/mmcblk0p38 /dev/block/mmcblk0p39 /dev/block/mmcblk0p4 /dev/block/mmcblk0p40 /dev/block/mmcblk0p41 /dev/block/mmcblk0p42 /dev/block/mmcblk0p43 /dev/block/mmcblk0p44 /dev/block/mmcblk0p45 /dev/block/mmcblk0p46 /dev/block/mmcblk0p47 /dev/block/mmcblk0p5 /dev/block/mmcblk0p6 /dev/block/mmcblk0p7 /dev/block/mmcblk0p8 /dev/block/mmcblk0p9 /dev/block/mmcblk0rpmb /dev/block/mmcblk1 /dev/block/mmcblk1p1 /dev/block/platform /dev/block/ram0 /dev/block/ram1 /dev/block/ram10 /dev/block/ram11 /dev/block/ram12 /dev/block/ram13 /dev/block/ram14 /dev/block/ram15 /dev/block/ram2 /dev/block/ram3 /dev/block/ram4 /dev/block/ram5 /dev/block/ram6 /dev/block/ram7 /dev/block/ram8 /dev/block/ram9 /dev/block/zram0 /dev/block/zram1 /dev/block/zram2 /dev/block/zram3 /dev/
+ ui_print 'Extracting partition table...'
+ echo 'ui_print Extracting partition table...'
+ echo ui_print
+ extract_partition_table
+ findfs 'PARTLABEL=system'
+ _INSTALL_DEVICE=/dev/block/mmcblk0p45
+ '[' '!' -z /dev/block/mmcblk0p45 ]
+ echo 'install device found at /dev/block/mmcblk0p45'
install device found at /dev/block/mmcblk0p45
+ export 'INSTALL_DEVICE=/dev/block/mmcblk0p45'
+ '[' false '=' true ]
+ findfs 'PARTLABEL=boot'
+ _BOOT_PARTITION=/dev/block/mmcblk0p42
+ '[' '!' -z /dev/block/mmcblk0p42 ]
+ echo 'boot partition found at /dev/block/mmcblk0p42'
boot partition found at /dev/block/mmcblk0p42
+ export 'BOOT_PARTITION=/dev/block/mmcblk0p42'
+ ui_print 'Unmounting /system...'
+ echo 'ui_print Unmounting /system...'
+ echo ui_print
+ umount_install_partition
+ awk '$1 == install_part' 'install_part=/dev/block/mmcblk0p45' /proc/mounts
+ '[' -n ]
+ echo '/dev/block/mmcblk0p45 is not mounted, continuing...'
/dev/block/mmcblk0p45 is not mounted, continuing...
+ ui_print 'Creating partition table on /dev/block/mmcblk0p45...'
+ echo 'ui_print Creating partition table on /dev/block/mmcblk0p45...'
+ echo ui_print
+ partition_install_device
+ parted -s /dev/block/mmcblk0p45 'mktable msdos'
Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/block/mmcblk0p45 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
+ parted -s /dev/block/mmcblk0p45 'mkpart primary ext2 2048s 100M'
Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/block/mmcblk0p45 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
+ parted -s /dev/block/mmcblk0p45 'mkpart primary 100M 100%'
Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/block/mmcblk0p45 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
+ parted -s /dev/block/mmcblk0p45 'set 1 boot on'
Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/block/mmcblk0p45 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
+ partprobe
Warning: Not all of the space available to /dev/block/mmcblk0 appears to be used, you can fix the GPT to use all of the space (an extra 126943 blocks) or continue with the current setting?
+ '[' system '=' system ]
+ kpartx -afs /dev/block/mmcblk0p45
+ set_subpartitions
+ export PMOS_BOOT
+ basename /dev/block/mmcblk0p45
+ PMOS_BOOT=/dev/mapper/mmcblk0p45p1
+ export ROOT_PARTITION
+ basename /dev/block/mmcblk0p45
+ ROOT_PARTITION=/dev/mapper/mmcblk0p45p2
+ ui_print 'Creating mountpoint...'
+ echo 'ui_print Creating mountpoint...'
+ echo ui_print
+ mkdir -p /mnt/pmOS
+ '[' false '=' true ]
+ ui_print 'Formatting root partition...'
+ echo 'ui_print Formatting root partition...'
+ echo ui_print
+ mkfs.ext4 -L pmOS_root /dev/mapper/mmcblk0p45p2
mke2fs 1.44.0 (7-Mar-2018)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/mapper/mmcblk0p45p2 is mounted.
Suggestion: Use Linux kernel >= 3.18 for improved stability of the metadata and journal checksum features.
Discarding device blocks: 4096/663808 done
Creating filesystem with 663808 4k blocks and 165984 inodes
Filesystem UUID: 6ded4721-ca4e-4fb4-9157-5e880cac4456
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: 0/21 done
Writing inode tables: 0/21 done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: 0/21 done
+ ui_print 'Mounting root partition...'
+ echo 'ui_print Mounting root partition...'
+ echo ui_print
+ mount -t ext4 -rw /dev/mapper/mmcblk0p45p2 /mnt/pmOS
mount: mounting /dev/mapper/mmcblk0p45p2 on /mnt/pmOS failed: Invalid argument