pmbootstrap to sdcard on debian 10
#1
Hello,

the command : pmbootstrap install --sdcard /dev/sdb

ask muliple sudo passwod :
(base) moi@debian:~/pmbootstrap$ pmbootstrap init

[16:34:16] Location of the 'work' path. Multiple chroots (native, device arch, device rootfs) will be created in there.
[16:34:16] Work path [/home/moi/.local/var/pmbootstrap]:
[16:34:32] WARNING: Your work folder version needs to be migrated (from version 0 to 4)!
[16:34:32] Changelog:
[16:34:32] * Building chroots have a different username (#709)
[16:34:32] Migration will do the following:
[16:34:32] * Zap your chroots
[16:34:32] * Adjust '/home/moi/.local/var/pmbootstrap/config_abuild/abuild.conf'
[16:34:32] Continue? (y/n) [n]: y
[sudo] Mot de passe de moi :
[sudo] Mot de passe de moi :
[16:34:52] Cleared up ~0 MB of space
.../...

(base) moi@debian:~$ pmbootstrap install --sdcard /dev/sdb
[16:03:07] *** (1/5) PREPARE NATIVE CHROOT ***
[sudo] Mot de passe de moi :
[sudo] Mot de passe de moi :
[sudo] Mot de passe de moi :
[sudo] Mot de passe de moi :
[sudo] Mot de passe de moi :
.../...


Il logs, script execute each command in sudo mode:
(016372) [16:03:07] *** (1/5) PREPARE NATIVE CHROOT ***
(016372) [16:03:07] NOTE: Skipped apk version check for chroot 'native', because it is not installed yet!
(016372) [16:03:07] % sudo mkdir -p /home/moi/.local/var/pmbootstrap/cache_apk_x86_64
(016372) [16:03:17] % sudo mkdir -p /home/moi/.local/var/pmbootstrap/chroot_native/var/cache/apk
(016372) [16:03:20] % sudo mount --bind /home/moi/.local/var/pmbootstrap/cache_apk_x86_64 /home/moi/.local/var/pmbootstrap/chroot_native/var/cache/apk
(016372) [16:03:26] % sudo mkdir -p /home/moi/.local/var/pmbootstrap/cache_ccache_x86_64
(016372) [16:03:31] % sudo mkdir -p /home/moi/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-ccache

same problem with : pmbootstrap export


(base) moi@debian:~/.local/var/pmbootstrap$ pwd
/home/moi/.local/var/pmbootstrap
(base) moi@debian:~/.local/var/pmbootstrap$ ls -lh
total 24K
drwx------ 3 moi  moi  4,0K janv. 27 15:16 cache_git
drwxr-xr-x 4 root root 4,0K janv. 27 15:31 chroot_native
drwxr-xr-x 3 root root 4,0K janv. 27 15:33 chroot_rootfs_pine64-pinephone
-rw-r--r-- 1 moi  moi  6,3K janv. 27 15:54 log.txt
-rw-r--r-- 1 moi  moi     2 janv. 27 15:16 version


I look on https://gitlab.com/postmarketOS/pmbootstrap, but I don't see if it's we have parameter with sudo password

What have I forgotten or done wrong ?
Thanks by advance for your help
#2
pmbootstrap runs a lot of commands with sudo internally, usually entering the sudo password once will cache it for a few minutes in the session so it should only be asked once.
#3
(01-28-2020, 04:26 PM)MartijnBraam Wrote: pmbootstrap runs a lot of commands with sudo internally,  usually entering the sudo password once will cache it for a few minutes in the session so it should only be asked once.

Thank you very much, in Debian 10, in /etc/sudoers, Defaults        timestamp_timeout=0
I increased it :-)


Possibly Related Threads…
Thread Author Replies Views Last Post
  phone won't boot from emmc with sdcard inserted ssilvi 3 3,579 06-06-2021, 02:47 AM
Last Post: ssilvi
  Cannot boot from SDCard cube 2 3,292 01-31-2021, 11:47 AM
Last Post: cube
  pmbootstrap error lat 2 3,476 12-22-2020, 06:32 PM
Last Post: lat
  pmbootstrap issues IVp 3 5,212 09-24-2020, 02:24 AM
Last Post: Pinethom
  pmbootstrap build large keyboard not usable u20200719 5 6,951 07-25-2020, 02:31 PM
Last Post: u20200719
  pmbootstrap to sdcard Jeb5Blovrueb 34 46,980 07-07-2020, 04:17 AM
Last Post: fernando_c_m
  Is it possible to pre-configure wifi and ssh with pmbootstrap? kelbot 2 4,645 07-06-2020, 01:55 AM
Last Post: ChriChri
  Dumb question: do I have to use pmbootstrap? quixote 5 6,889 06-11-2020, 09:23 AM
Last Post: plainenough
  Comparison to Debian Version Concrete_panda 2 4,461 04-19-2020, 12:34 PM
Last Post: Concrete_panda
  pmbootstrap on Mac OSX srfne 2 5,375 02-29-2020, 04:15 PM
Last Post: srfne

Forum Jump:


Users browsing this thread: 1 Guest(s)