[orangepir1] [debian buster] [vmdb2] fabrication image bootable

Discussions sur les Orange Pi (R1, Zéro, etc.)
http://www.orangepi.org/
Répondre
jeanmarc
Messages : 40
Enregistré le : dim. mars 22, 2020 5:28 pm
Localisation : Essonne

[orangepir1] [debian buster] [vmdb2] fabrication image bootable

Message par jeanmarc »

Bonjour,

Merci à Jérôme pour l'intégration de la orangepir1 dans le projet VMDB2 afin d'assurer le démarrage du kernel Linux Debian en version Buster 10.4

https://github.com/Jerome-Maurin/vmdb2-wrapper

La flash est générée selon les instructions du site ci-dessus

Pour résumer, la procédure de génération de l'auteur est la suivante (!)

ansible@asus-190:~/git/vmdb2-wrapper.git$ head orangepi-r1_buster_armhf_vmdb2-0.14.1.yaml

Code : Tout sélectionner

# Use like this : sudo vmdb2 orangepi-r1_buster_armhf_vmdb2-0.14.1.yaml --output orangepi-r1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --log=stderr
En reprenant les travaux du projet VMDB2... à partir de la version suivante ...

Code : Tout sélectionner

ansible@asus-190:~/git/vmdb2-wrapper.git$ git log |head
commit a0e5010e7d541d5e89b323d7ead0b4de6fc08b42
Merge: f68b02e 10cbc68
Author: ansible user (ansible@asus-190) with sudo access <ansible@asus-190-user.noip.jml>
Date:   Sun Jun 14 11:47:53 2020 +0200

    Merge branch 'master' of github.com:Jerome-Maurin/vmdb2-wrapper into jml-integration

commit 10cbc68f9f9ba788c42ba8475e9635062fa3f1e1
Author: Jérôme Maurin <jerome.maurin@eternilab.com>
Date:   Sun Jun 14 02:52:37 2020 +0200
ansible@asus-190:~/git/vmdb2-wrapper.git$ 
Création d'une image à l'état de l'art (!)
... et fabrication en sortie d'un fichier de log avec les numéros de ligne (très précieux pour discuter avec l'auteur !)

Code : Tout sélectionner

ansible@asus-190:~/git/vmdb2-wrapper.git$ 

time \
sudo \
vmdb2 \
orangepi-r1_buster_armhf_vmdb2-0.14.1.yaml \
--output orangepi-r1_buster_armhf.img \
--rootfs-tarball buster_armhf_rootfs.tgz \
--log=stderr \
2>&1 \
|  tee \
/tmp/vmdb2.log 

cat -n \
/tmp/vmdb2.log \
> /tmp/vmdb2.log.txt

ce qui donne en matière de durée d'execution ...

Code : Tout sélectionner

....
INFO vmdb2 version 0.16 ends normally

real    3m16,635s
user    2m58,324s
sys     0m17,139s

Pour mémoire, le projet VMDB2 intègre un cache permettant lors d'un n iem passage de profiter de l'effet de téléchargement des paquets Debian indispensables à la fabrication du rootfs avec l'outil debootstrap.
La valeur fournie ici corresponds bien entendu à ce cas.

Le fichier de log généré est le suivant...

Code : Tout sélectionner

     1	INFO vmdb2 version 0.16 starts
     2	DEBUG sys.argv: ['/usr/bin/vmdb2', 'orangepi-r1_buster_armhf_vmdb2-0.14.1.yaml', '--output', 'orangepi-r1_buster_armhf.img', '--rootfs-tarball', 'buster_armhf_rootfs.tgz', '--log=stderr']
     3	DEBUG current working directory: /home/ansible/git/vmdb2-wrapper.git
     4	DEBUG uid: 0
     5	DEBUG effective uid: 0
     6	DEBUG gid: 0
     7	DEBUG effective gid: 0
     8	DEBUG environment variables:
     9	DEBUG environment: LANGUAGE=fr_FR.UTF-8
    10	DEBUG environment: LC_ADDRESS=fr_FR.UTF-8
    11	DEBUG environment: LC_MONETARY=fr_FR.UTF-8
    12	DEBUG environment: XAUTHORITY=/home/ansible/.Xauthority
    13	DEBUG environment: LC_PAPER=A4
    14	DEBUG environment: LANG=fr_FR.utf8
    15	DEBUG environment: LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
    16	DEBUG environment: TERM=xterm
    17	DEBUG environment: LC_RESPONSE=fr_FR.UTF-8
    18	DEBUG environment: DISPLAY=:0.0
    19	DEBUG environment: LC_TELEPHONE=fr_FR.UTF-8
    20	DEBUG environment: LC_MESSAGES=fr_FR.UTF-8
    21	DEBUG environment: LC_MEASUREMENT=fr_FR.UTF-8
    22	DEBUG environment: LC_CTYPE=C.UTF-8
    23	DEBUG environment: LC_TIME=fr_FR.UTF-8
    24	DEBUG environment: LC_COLLATE=fr_FR.UTF-8
    25	DEBUG environment: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    26	DEBUG environment: LC_NUMERIC=fr_FR.UTF-8
    27	DEBUG environment: MAIL=/var/mail/root
    28	DEBUG environment: LOGNAME=root
    29	DEBUG environment: USER=root
    30	DEBUG environment: HOME=/root
    31	DEBUG environment: SHELL=/bin/bash
    32	DEBUG environment: SUDO_COMMAND=/usr/bin/vmdb2 orangepi-r1_buster_armhf_vmdb2-0.14.1.yaml --output orangepi-r1_buster_armhf.img --rootfs-tarball buster_armhf_rootfs.tgz --log=stderr
    33	DEBUG environment: SUDO_USER=ansible
    34	DEBUG environment: SUDO_UID=998
    35	DEBUG environment: SUDO_GID=998
    36	DEBUG Config:
    37	[config]
    38	output = orangepi-r1_buster_armhf.img
    39	log = stderr
    40	log-level = debug
    41	log-max = 0
    42	log-keep = 10
    43	log-mode = 0600
    44	dump-memory-profile = simple
    45	memory-dump-interval = 300
    46	image = 
    47	verbose = False
    48	rootfs-tarball = buster_armhf_rootfs.tgz
    49	size = 1073741824
    50	
    51	
    52	DEBUG Python version: 3.7.3 (default, Dec 20 2019, 18:57:59) 
    53	[GCC 8.3.0]
    54	INFO Load spec file orangepi-r1_buster_armhf_vmdb2-0.14.1.yaml
    55	INFO Running step: {'mkimg': 'orangepi-r1_buster_armhf.img', 'size': '3G'}
    56	INFO Calling <bound method MkimgStepRunner.run of <mkimg_plugin.MkimgStepRunner object at 0x7f376321a860>>
    57	INFO Exec: ['qemu-img', 'create', '-f', 'raw', 'orangepi-r1_buster_armhf.img', '3G']
    58	DEBUG STDOUT: Formatting 'orangepi-r1_buster_armhf.img', fmt=raw size=3221225472
    59	
    60	DEBUG STDERR: 
    61	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <mkimg_plugin.MkimgStepRunner object at 0x7f376321a860>>
    62	INFO Running step: {'mklabel': 'msdos', 'device': 'orangepi-r1_buster_armhf.img'}
    63	INFO Calling <bound method MklabelStepRunner.run of <mklabel_plugin.MklabelStepRunner object at 0x7f376321a978>>
    64	INFO Exec: ['parted', '-s', 'orangepi-r1_buster_armhf.img', 'mklabel', 'msdos']
    65	DEBUG STDOUT: 
    66	DEBUG STDERR: 
    67	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <mklabel_plugin.MklabelStepRunner object at 0x7f376321a978>>
    68	INFO Running step: {'mkpart': 'primary', 'device': 'orangepi-r1_buster_armhf.img', 'start': '0%', 'end': '100%', 'tag': 'root'}
    69	INFO Calling <bound method MkpartStepRunner.run of <mkpart_plugin.MkpartStepRunner object at 0x7f376321a8d0>>
    70	INFO Exec: ['parted', '-m', '/home/ansible/git/vmdb2-wrapper.git/orangepi-r1_buster_armhf.img', 'print']
    71	DEBUG STDOUT: BYT;
    72	/home/ansible/git/vmdb2-wrapper.git/orangepi-r1_buster_armhf.img:3221MB:file:512:512:msdos::;
    73	
    74	DEBUG STDERR: 
    75	INFO Exec: ['parted', '-s', '/home/ansible/git/vmdb2-wrapper.git/orangepi-r1_buster_armhf.img', 'mkpart', 'primary', 'ext2', '0%', '100%']
    76	DEBUG STDOUT: 
    77	DEBUG STDERR: 
    78	INFO Exec: ['parted', '-m', '/home/ansible/git/vmdb2-wrapper.git/orangepi-r1_buster_armhf.img', 'print']
    79	DEBUG STDOUT: BYT;
    80	/home/ansible/git/vmdb2-wrapper.git/orangepi-r1_buster_armhf.img:3221MB:file:512:512:msdos::;
    81	1:1049kB:3221MB:3220MB:::;
    82	
    83	DEBUG STDERR: 
    84	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <mkpart_plugin.MkpartStepRunner object at 0x7f376321a8d0>>
    85	INFO Running step: {'kpartx': 'orangepi-r1_buster_armhf.img'}
    86	INFO Calling <bound method KpartxStepRunner.run of <kpartx_plugin.KpartxStepRunner object at 0x7f376321a780>>
    87	INFO Exec: ['kpartx', '-asv', 'orangepi-r1_buster_armhf.img']
    88	DEBUG STDOUT: add map loop0p1 (254:133): 0 6289408 linear 7:0 2048
    89	
    90	DEBUG STDERR: 
    91	INFO remembering /dev/mapper/loop0p1 as root
    92	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <kpartx_plugin.KpartxStepRunner object at 0x7f376321a780>>
    93	INFO Running step: {'mkfs': 'ext4', 'partition': 'root'}
    94	INFO Calling <bound method MkfsStepRunner.run of <mkfs_plugin.MkfsStepRunner object at 0x7f376321a828>>
    95	INFO Exec: ['/sbin/mkfs', '-t', 'ext4', '/dev/mapper/loop0p1']
    96	DEBUG STDOUT: Discarding device blocks:   4096/786176             done                            
    97	Creating filesystem with 786176 4k blocks and 196608 inodes
    98	Filesystem UUID: 6dc38b61-78ef-448e-aae6-eee1e0b53d1b
    99	Superblock backups stored on blocks: 
   100		32768, 98304, 163840, 229376, 294912
   101	
   102	Allocating group tables:  0/24     done                            
   103	Writing inode tables:  0/24     done                            
   104	Creating journal (16384 blocks): done
   105	Writing superblocks and filesystem accounting information:  0/24     done
   106	
   107	
   108	DEBUG STDERR: mke2fs 1.44.5 (15-Dec-2018)
   109	
   110	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <mkfs_plugin.MkfsStepRunner object at 0x7f376321a828>>
   111	INFO Running step: {'mount': 'root'}
   112	INFO Calling <bound method MountStepRunner.run of <mount_plugin.MountStepRunner object at 0x7f376321aa20>>
   113	INFO Exec: ['mount', '/dev/mapper/loop0p1', '/tmp/tmppbfbuwjv']
   114	DEBUG STDOUT: 
   115	DEBUG STDERR: 
   116	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <mount_plugin.MountStepRunner object at 0x7f376321aa20>>
   117	INFO Running step: {'unpack-rootfs': 'root'}
   118	INFO Calling <bound method UnpackCacheStepRunner.run of <unpack_rootfs_plugin.UnpackCacheStepRunner object at 0x7f376321aa58>>
   119	INFO Exec: ['tar', '-C', '/tmp/tmppbfbuwjv', '-xf', 'buster_armhf_rootfs.tgz', '--numeric-owner']
   120	DEBUG STDOUT: 
   121	DEBUG STDERR: 
   122	INFO Exec: ['cp', '/etc/resolv.conf', '/tmp/tmppbfbuwjv/etc/resolv.conf']
   123	DEBUG STDOUT: 
   124	DEBUG STDERR: 
   125	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <unpack_rootfs_plugin.UnpackCacheStepRunner object at 0x7f376321aa58>>
   126	INFO Running step: {'qemu-debootstrap': 'buster', 'mirror': 'http://ftp.de.debian.org/debian', 'target': 'root', 'arch': 'armhf', 'components': ['main', 'contrib', 'non-free'], 'unless': 'rootfs_unpacked'}
   127	INFO Skipping as requested by unless
   128	INFO Calling <bound method QemuDebootstrapStepRunner.run_even_if_skipped of <qemudebootstrap_plugin.QemuDebootstrapStepRunner object at 0x7f376321a9e8>>
   129	INFO Exec: ['chroot', '/tmp/tmppbfbuwjv', 'apt-get', 'update']
   130	DEBUG STDOUT: Hit:1 http://ftp.de.debian.org/debian buster InRelease
   131	Get:2 http://ftp.de.debian.org/debian buster-updates InRelease [51.9 kB]
   132	Get:3 http://security.debian.org buster/updates InRelease [65.4 kB]
   133	Get:4 http://ftp.de.debian.org/debian buster-backports InRelease [46.7 kB]
   134	Get:5 http://security.debian.org buster/updates/main armhf Packages [206 kB]
   135	Get:6 http://security.debian.org buster/updates/main Translation-en [113 kB]
   136	Get:7 http://ftp.de.debian.org/debian buster-updates/main armhf Packages.diff/Index [3688 B]
   137	Get:8 http://ftp.de.debian.org/debian buster-updates/main Translation-en.diff/Index [3196 B]
   138	Get:9 http://ftp.de.debian.org/debian buster-updates/main armhf Packages 2020-06-13-2000.26.pdiff [552 B]
   139	Get:9 http://ftp.de.debian.org/debian buster-updates/main armhf Packages 2020-06-13-2000.26.pdiff [552 B]
   140	Get:10 http://ftp.de.debian.org/debian buster-updates/main Translation-en 2020-06-13-2000.26.pdiff [423 B]
   141	Get:10 http://ftp.de.debian.org/debian buster-updates/main Translation-en 2020-06-13-2000.26.pdiff [423 B]
   142	Get:11 http://ftp.de.debian.org/debian buster-backports/main armhf Packages.diff/Index [27.8 kB]
   143	Get:12 http://ftp.de.debian.org/debian buster-backports/main Translation-en.diff/Index [27.8 kB]
   144	Get:13 http://ftp.de.debian.org/debian buster-backports/contrib armhf Packages.diff/Index [13.0 kB]
   145	Get:14 http://ftp.de.debian.org/debian buster-backports/non-free armhf Packages.diff/Index [10.1 kB]
   146	Get:15 http://ftp.de.debian.org/debian buster-backports/non-free Translation-en.diff/Index [9100 B]
   147	Get:16 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-14-0800.16.pdiff [176 B]
   148	Get:17 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-14-1401.44.pdiff [273 B]
   149	Get:18 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-14-2000.12.pdiff [2143 B]
   150	Get:19 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-15-0800.22.pdiff [1032 B]
   151	Get:20 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-15-1412.06.pdiff [16.6 kB]
   152	Get:21 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-15-2002.49.pdiff [912 B]
   153	Get:22 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-16-0206.36.pdiff [1878 B]
   154	Get:23 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-16-2000.22.pdiff [846 B]
   155	Get:24 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-17-0207.25.pdiff [1420 B]
   156	Get:25 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-17-1400.36.pdiff [250 B]
   157	Get:26 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-17-2005.01.pdiff [492 B]
   158	Get:27 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-18-0209.07.pdiff [174 B]
   159	Get:28 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-18-1402.03.pdiff [277 B]
   160	Get:29 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-18-2002.31.pdiff [1575 B]
   161	Get:30 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-19-0806.56.pdiff [1708 B]
   162	Get:31 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-19-2004.25.pdiff [2496 B]
   163	Get:32 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-20-0209.35.pdiff [6531 B]
   164	Get:33 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-21-0801.43.pdiff [576 B]
   165	Get:34 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-21-1400.21.pdiff [457 B]
   166	Get:35 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-21-2001.23.pdiff [185 B]
   167	Get:36 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-22-0800.25.pdiff [194 B]
   168	Get:37 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-23-2003.16.pdiff [1718 B]
   169	Get:38 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-24-2007.53.pdiff [601 B]
   170	Get:39 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-25-0800.30.pdiff [189 B]
   171	Get:40 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-25-1409.43.pdiff [381 B]
   172	Get:41 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-25-2014.01.pdiff [693 B]
   173	Get:42 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-26-0210.17.pdiff [322 B]
   174	Get:43 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-27-0213.34.pdiff [283 B]
   175	Get:44 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-27-0812.49.pdiff [6501 B]
   176	Get:45 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-27-2008.43.pdiff [20.1 kB]
   177	Get:46 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-28-0803.00.pdiff [799 B]
   178	Get:47 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-29-0201.41.pdiff [199 B]
   179	Get:48 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-29-0802.58.pdiff [271 B]
   180	Get:49 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-29-1407.12.pdiff [2153 B]
   181	Get:50 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-29-2006.33.pdiff [5364 B]
   182	Get:51 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-06-30-0809.20.pdiff [1150 B]
   183	Get:52 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-01-0209.34.pdiff [650 B]
   184	Get:53 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-01-1411.35.pdiff [213 B]
   185	Get:54 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-01-2012.33.pdiff [243 B]
   186	Get:55 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-02-0212.05.pdiff [188 B]
   187	Get:56 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-02-1404.31.pdiff [196 B]
   188	Get:57 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-02-2005.56.pdiff [1063 B]
   189	Get:58 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-03-0807.11.pdiff [200 B]
   190	Get:59 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-03-1401.52.pdiff [3466 B]
   191	Get:60 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-03-2002.25.pdiff [3320 B]
   192	Get:60 http://ftp.de.debian.org/debian buster-backports/main armhf Packages 2020-07-03-2002.25.pdiff [3320 B]
   193	Get:61 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-14-2000.12.pdiff [163 B]
   194	Get:62 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-15-0800.22.pdiff [12.4 kB]
   195	Get:63 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-15-1412.06.pdiff [3243 B]
   196	Get:64 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-15-2002.49.pdiff [1150 B]
   197	Get:65 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-17-0800.31.pdiff [909 B]
   198	Get:66 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-19-2004.25.pdiff [3332 B]
   199	Get:67 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-20-0209.35.pdiff [1080 B]
   200	Get:68 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-06-29-1407.12.pdiff [5231 B]
   201	Get:69 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-07-03-1401.52.pdiff [9367 B]
   202	Get:69 http://ftp.de.debian.org/debian buster-backports/main Translation-en 2020-07-03-1401.52.pdiff [9367 B]
   203	Get:70 http://ftp.de.debian.org/debian buster-backports/contrib armhf Packages 2020-07-02-0212.05.pdiff [182 B]
   204	Get:71 http://ftp.de.debian.org/debian buster-backports/non-free armhf Packages 2020-06-15-0800.22.pdiff [443 B]
   205	Get:72 http://ftp.de.debian.org/debian buster-backports/non-free armhf Packages 2020-06-15-1412.06.pdiff [280 B]
   206	Get:70 http://ftp.de.debian.org/debian buster-backports/contrib armhf Packages 2020-07-02-0212.05.pdiff [182 B]
   207	Get:73 http://ftp.de.debian.org/debian buster-backports/non-free armhf Packages 2020-07-01-0810.32.pdiff [2371 B]
   208	Get:74 http://ftp.de.debian.org/debian buster-backports/non-free Translation-en 2020-06-15-0800.22.pdiff [1061 B]
   209	Get:75 http://ftp.de.debian.org/debian buster-backports/non-free Translation-en 2020-07-01-0810.32.pdiff [359 B]
   210	Get:75 http://ftp.de.debian.org/debian buster-backports/non-free Translation-en 2020-07-01-0810.32.pdiff [359 B]
   211	Get:73 http://ftp.de.debian.org/debian buster-backports/non-free armhf Packages 2020-07-01-0810.32.pdiff [2371 B]
   212	Fetched 710 kB in 10s (72.7 kB/s)
   213	Reading package lists...
   214	
   215	DEBUG STDERR: 
   216	INFO Running step: {'apt': 'install', 'packages': ['initramfs-tools'], 'tag': 'root', 'unless': 'rootfs_unpacked'}
   217	INFO Skipping as requested by unless
   218	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <apt_plugin.AptStepRunner object at 0x7f37632682e8>>
   219	INFO Running step: {'chroot': 'root', 'shell': 'echo "deb http://ftp.de.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list\necho "deb http://security.debian.org/ buster/updates main contrib non-free" >> /etc/apt/sources.list\necho "deb http://ftp.de.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list\necho "deb http://ftp.de.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list\napt-get update\nmv /etc/kernel/postinst.d/initramfs-tools /\napt-get -y install -t buster-backports linux-image-armmp-lpae\nmv /initramfs-tools /etc/kernel/postinst.d/', 'unless': 'rootfs_unpacked'}
   220	INFO Skipping as requested by unless
   221	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   222	INFO Running step: {'apt': 'install', 'packages': ['flash-kernel'], 'tag': 'root', 'unless': 'rootfs_unpacked'}
   223	INFO Skipping as requested by unless
   224	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <apt_plugin.AptStepRunner object at 0x7f37632682e8>>
   225	INFO Running step: {'cache-rootfs': 'root', 'unless': 'rootfs_unpacked'}
   226	INFO Skipping as requested by unless
   227	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <cache_rootfs_plugin.MakeCacheStepRunner object at 0x7f3763268390>>
   228	INFO Running step: {'chroot': 'root', 'shell': 'apt-get update\napt-get -y upgrade'}
   229	INFO Calling <bound method ChrootStepRunner.run of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   230	INFO Exec: ['chroot', '/tmp/tmppbfbuwjv', 'sh', '-ec', 'apt-get update\napt-get -y upgrade']
   231	DEBUG STDOUT: Hit:1 http://security.debian.org buster/updates InRelease
   232	Hit:2 http://ftp.de.debian.org/debian buster InRelease
   233	Hit:3 http://ftp.de.debian.org/debian buster-updates InRelease
   234	Hit:4 http://ftp.de.debian.org/debian buster-backports InRelease
   235	Reading package lists...
   236	Reading package lists...
   237	Building dependency tree...
   238	Reading state information...
   239	Calculating upgrade...
   240	The following packages have been kept back:
   241	  linux-image-armmp-lpae
   242	The following packages will be upgraded:
   243	  apt apt-utils libapt-inst2.0 libapt-pkg5.0 libdns-export1104 libgnutls30
   244	  libisc-export1100
   245	7 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
   246	Need to get 5175 kB of archives.
   247	After this operation, 1024 B disk space will be freed.
   248	Get:1 http://security.debian.org buster/updates/main armhf libapt-pkg5.0 armhf 1.8.2.1 [881 kB]
   249	Get:2 http://security.debian.org buster/updates/main armhf libapt-inst2.0 armhf 1.8.2.1 [199 kB]
   250	Get:3 http://security.debian.org buster/updates/main armhf apt armhf 1.8.2.1 [1367 kB]
   251	Get:4 http://security.debian.org buster/updates/main armhf apt-utils armhf 1.8.2.1 [404 kB]
   252	Get:5 http://security.debian.org buster/updates/main armhf libgnutls30 armhf 3.6.7-4+deb10u4 [1064 kB]
   253	Get:6 http://security.debian.org buster/updates/main armhf libisc-export1100 armhf 1:9.11.5.P4+dfsg-5.1+deb10u1 [362 kB]
   254	Get:7 http://security.debian.org buster/updates/main armhf libdns-export1104 armhf 1:9.11.5.P4+dfsg-5.1+deb10u1 [897 kB]
   255	Fetched 5175 kB in 1s (5075 kB/s)
   256	(Reading database ... 15091 files and directories currently installed.)
   257	Preparing to unpack .../libapt-pkg5.0_1.8.2.1_armhf.deb ...
   258	Unpacking libapt-pkg5.0:armhf (1.8.2.1) over (1.8.2) ...
   259	Setting up libapt-pkg5.0:armhf (1.8.2.1) ...
   260	(Reading database ... 15091 files and directories currently installed.)
   261	Preparing to unpack .../libapt-inst2.0_1.8.2.1_armhf.deb ...
   262	Unpacking libapt-inst2.0:armhf (1.8.2.1) over (1.8.2) ...
   263	Preparing to unpack .../archives/apt_1.8.2.1_armhf.deb ...
   264	Unpacking apt (1.8.2.1) over (1.8.2) ...
   265	Setting up apt (1.8.2.1) ...
   266	(Reading database ... 15091 files and directories currently installed.)
   267	Preparing to unpack .../apt-utils_1.8.2.1_armhf.deb ...
   268	Unpacking apt-utils (1.8.2.1) over (1.8.2) ...
   269	Preparing to unpack .../libgnutls30_3.6.7-4+deb10u4_armhf.deb ...
   270	Unpacking libgnutls30:armhf (3.6.7-4+deb10u4) over (3.6.7-4+deb10u3) ...
   271	Setting up libgnutls30:armhf (3.6.7-4+deb10u4) ...
   272	(Reading database ... 15091 files and directories currently installed.)
   273	Preparing to unpack .../libisc-export1100_1%3a9.11.5.P4+dfsg-5.1+deb10u1_armhf.deb ...
   274	Unpacking libisc-export1100:armhf (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.11.5.P4+dfsg-5.1) ...
   275	Preparing to unpack .../libdns-export1104_1%3a9.11.5.P4+dfsg-5.1+deb10u1_armhf.deb ...
   276	Unpacking libdns-export1104 (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.11.5.P4+dfsg-5.1) ...
   277	Setting up libapt-inst2.0:armhf (1.8.2.1) ...
   278	Setting up libisc-export1100:armhf (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
   279	Setting up libdns-export1104 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
   280	Setting up apt-utils (1.8.2.1) ...
   281	Processing triggers for libc-bin (2.28-10) ...
   282	
   283	DEBUG STDERR: E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)
   284	
   285	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   286	INFO Running step: {'create-file': '/etc/hostname', 'contents': 'OrangePiR1\n'}
   287	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   288	INFO Creating file /tmp/tmppbfbuwjv//etc/hostname, uid 0, gid 0, perms 644
   289	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   290	INFO Running step: {'fstab': 'root'}
   291	INFO Calling <bound method FstabStepRunner.run of <fstab_plugin.FstabStepRunner object at 0x7f376321a710>>
   292	INFO Exec: ['blkid', '-c', '/dev/null', '-o', 'value', '-s', 'UUID', '/dev/mapper/loop0p1']
   293	DEBUG STDOUT: 6dc38b61-78ef-448e-aae6-eee1e0b53d1b
   294	
   295	DEBUG STDERR: 
   296	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <fstab_plugin.FstabStepRunner object at 0x7f376321a710>>
   297	INFO Running step: {'create-file': '/etc/flash-kernel/db', 'contents': 'Machine: Xunlong Orange Pi R1\nKernel-Flavors: armmp armmp-lpae\nBoot-Script-Path: /boot/boot.scr\nDTB-Id: sun8i-h2-plus-orangepi-r1.dtb\nU-Boot-Script-Name: bootscr.sunxi\nRequired-Packages: u-boot-tools\n'}
   298	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   299	INFO Creating file /tmp/tmppbfbuwjv//etc/flash-kernel/db, uid 0, gid 0, perms 644
   300	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   301	INFO Running step: {'create-file': '/etc/flash-kernel/machine', 'contents': 'Xunlong Orange Pi R1\n'}
   302	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   303	INFO Creating file /tmp/tmppbfbuwjv//etc/flash-kernel/machine, uid 0, gid 0, perms 644
   304	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   305	INFO Running step: {'root-fs': 'root', 'shell': 'mount -o bind /dev $ROOT/dev'}
   306	INFO Calling <bound method ShellStepRunner.run of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   307	INFO Exec: ['sh', '-ec', 'mount -o bind /dev $ROOT/dev']
   308	DEBUG STDOUT: 
   309	DEBUG STDERR: 
   310	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   311	INFO Running step: {'chroot': 'root', 'shell': 'sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab\n\nsed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \\  -f 1) net.ifnames=0_g" /etc/default/flash-kernel\nupdate-initramfs -c -k $(ls -l /vmlinuz | sed "s%^.*vmlinuz-\\(.*\\)$%\\1%g")\numount /dev\n\nsed -i "s_root:\\*:_root::_g" /etc/shadow'}
   312	INFO Calling <bound method ChrootStepRunner.run of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   313	INFO Exec: ['chroot', '/tmp/tmppbfbuwjv', 'sh', '-ec', 'sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab\n\nsed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \\  -f 1) net.ifnames=0_g" /etc/default/flash-kernel\nupdate-initramfs -c -k $(ls -l /vmlinuz | sed "s%^.*vmlinuz-\\(.*\\)$%\\1%g")\numount /dev\n\nsed -i "s_root:\\*:_root::_g" /etc/shadow']
   314	DEBUG STDOUT: update-initramfs: Generating /boot/initrd.img-5.5.0-0.bpo.2-armmp-lpae
   315	
   316	DEBUG STDERR: W: /sbin/fsck.ext4dev doesn't exist, can't install to initramfs
   317	Using DTB: sun8i-h2-plus-orangepi-r1.dtb
   318	Installing /usr/lib/linux-image-5.5.0-0.bpo.2-armmp-lpae/sun8i-h2-plus-orangepi-r1.dtb into /boot/dtbs/5.5.0-0.bpo.2-armmp-lpae/./sun8i-h2-plus-orangepi-r1.dtb
   319	Installing new sun8i-h2-plus-orangepi-r1.dtb.
   320	Installing /usr/lib/linux-image-5.5.0-0.bpo.2-armmp-lpae/sun8i-h2-plus-orangepi-r1.dtb into /boot/dtbs/5.5.0-0.bpo.2-armmp-lpae/./sun8i-h2-plus-orangepi-r1.dtb
   321	Taking backup of sun8i-h2-plus-orangepi-r1.dtb.
   322	Installing new sun8i-h2-plus-orangepi-r1.dtb.
   323	flash-kernel: installing version 5.5.0-0.bpo.2-armmp-lpae
   324	Generating boot script u-boot image... done.
   325	Installing new boot.scr.
   326	
   327	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   328	INFO Running step: {'root-fs': 'root', 'shell': 'curl -o $ROOT/linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb https://apt.armbian.com/pool/main/l/linux-u-boot-orangepi-r1-current/linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb'}
   329	INFO Calling <bound method ShellStepRunner.run of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   330	INFO Exec: ['sh', '-ec', 'curl -o $ROOT/linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb https://apt.armbian.com/pool/main/l/linux-u-boot-orangepi-r1-current/linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb']
   331	DEBUG STDOUT: 
   332	DEBUG STDERR:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
   333	                                 Dload  Upload   Total   Spent    Left  Speed
   334	
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  225k  100  225k    0     0   417k      0 --:--:-- --:--:-- --:--:--  417k
   335	
   336	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   337	INFO Running step: {'chroot': 'root', 'shell': 'dpkg -i linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb\nrm linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb'}
   338	INFO Calling <bound method ChrootStepRunner.run of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   339	INFO Exec: ['chroot', '/tmp/tmppbfbuwjv', 'sh', '-ec', 'dpkg -i linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb\nrm linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb']
   340	DEBUG STDOUT: Selecting previously unselected package linux-u-boot-orangepi-r1-current.
   341	(Reading database ... 15091 files and directories currently installed.)
   342	Preparing to unpack linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb ...
   343	Unpacking linux-u-boot-orangepi-r1-current (20.02.1) ...
   344	Setting up linux-u-boot-orangepi-r1-current (20.02.1) ...
   345	
   346	DEBUG STDERR: 
   347	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   348	INFO Running step: {'root-fs': 'root', 'shell': 'dd conv=fsync,notrunc if=$ROOT/usr/lib/linux-u-boot-current-orangepi-r1_20.02.1_armhf/u-boot-sunxi-with-spl.bin of=orangepi-r1_buster_armhf.img bs=1024 seek=8'}
   349	INFO Calling <bound method ShellStepRunner.run of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   350	INFO Exec: ['sh', '-ec', 'dd conv=fsync,notrunc if=$ROOT/usr/lib/linux-u-boot-current-orangepi-r1_20.02.1_armhf/u-boot-sunxi-with-spl.bin of=orangepi-r1_buster_armhf.img bs=1024 seek=8']
   351	DEBUG STDOUT: 
   352	DEBUG STDERR: 452+1 records in
   353	452+1 records out
   354	462966 bytes (463 kB, 452 KiB) copied, 0.0057844 s, 80.0 MB/s
   355	
   356	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   357	INFO Running step: {'create-file': '/etc/network/interfaces.d/lo', 'contents': 'auto lo\niface lo inet loopback\n'}
   358	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   359	INFO Creating file /tmp/tmppbfbuwjv//etc/network/interfaces.d/lo, uid 0, gid 0, perms 644
   360	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   361	INFO Running step: {'create-file': '/etc/network/interfaces.d/eth0', 'contents': 'auto eth0\niface eth0 inet dhcp\n'}
   362	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   363	INFO Creating file /tmp/tmppbfbuwjv//etc/network/interfaces.d/eth0, uid 0, gid 0, perms 644
   364	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   365	INFO Running step: {'create-file': '/etc/network/interfaces.d/eth1', 'contents': 'auto eth1\niface eth1 inet dhcp\n'}
   366	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   367	INFO Creating file /tmp/tmppbfbuwjv//etc/network/interfaces.d/eth1, uid 0, gid 0, perms 644
   368	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   369	INFO Running step: {'root-fs': 'root', 'shell': 'test -e vmdb2-ansible.yaml || ln -s vmdb2-ansible.yaml.example vmdb2-ansible.yaml\nmount -t proc proc $ROOT/proc\nmount -o bind /dev $ROOT/dev'}
   370	INFO Calling <bound method ShellStepRunner.run of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   371	INFO Exec: ['sh', '-ec', 'test -e vmdb2-ansible.yaml || ln -s vmdb2-ansible.yaml.example vmdb2-ansible.yaml\nmount -t proc proc $ROOT/proc\nmount -o bind /dev $ROOT/dev']
   372	DEBUG STDOUT: 
   373	DEBUG STDERR: 
   374	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   375	INFO Running step: {'ansible': 'root', 'playbook': 'vmdb2-ansible.yaml'}
   376	INFO Calling <bound method AnsibleStepRunner.run of <ansible_plugin.AnsibleStepRunner object at 0x7f37632682b0>>
   377	INFO Created /tmp/tmpo8f5hxg7 for Ansible inventory
   378	INFO Created /tmp/tmpauib556b for Ansible variables
   379	INFO Exec: ['ansible-playbook', '-c', 'chroot', '-i', '/tmp/tmpo8f5hxg7', '-e', '@/tmp/tmpauib556b', 'vmdb2-ansible.yaml']
   380	DEBUG STDOUT: 
   381	PLAY [image] ************************************************************************************************************************************
   382	
   383	TASK [Gathering Facts] **************************************************************************************************************************
   384	ok: [/tmp/tmppbfbuwjv]
   385	
   386	TASK [1/3 disable Apparmor in order to correct LXC startup] *************************************************************************************
   387	changed: [/tmp/tmppbfbuwjv]
   388	
   389	TASK [2/3 Install python and openssh-server as defined in Debian standard Buster] ***************************************************************
   390	changed: [/tmp/tmppbfbuwjv]
   391	
   392	TASK [3/3 Install public ssh key into root account] *********************************************************************************************
   393	changed: [/tmp/tmppbfbuwjv]
   394	
   395	PLAY RECAP **************************************************************************************************************************************
   396	/tmp/tmppbfbuwjv           : ok=4    changed=3    unreachable=0    failed=0   
   397	
   398	
   399	DEBUG STDERR:  [WARNING]: Consider using the replace, lineinfile or template module rather than running sed.  If you need to use command because replace,
   400	lineinfile or template is insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of
   401	this message.
   402	 [WARNING]: Consider using the apt module rather than running apt-get.  If you need to use command because apt is insufficient you can add
   403	warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of this message.
   404	 [WARNING]: Consider using the file module with state=directory rather than running mkdir.  If you need to use command because file is
   405	insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of this message.
   406	
   407	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <ansible_plugin.AnsibleStepRunner object at 0x7f37632682b0>>
   408	INFO Running step: {'root-fs': 'root', 'shell': 'umount $ROOT/dev\numount $ROOT/proc\nrm $ROOT/etc/flash-kernel/machine\ndiff vmdb2-ansible.yaml.example vmdb2-ansible.yaml && test -L vmdb2-ansible.yaml && rm vmdb2-ansible.yaml || true'}
   409	INFO Calling <bound method ShellStepRunner.run of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   410	INFO Exec: ['sh', '-ec', 'umount $ROOT/dev\numount $ROOT/proc\nrm $ROOT/etc/flash-kernel/machine\ndiff vmdb2-ansible.yaml.example vmdb2-ansible.yaml && test -L vmdb2-ansible.yaml && rm vmdb2-ansible.yaml || true']
   411	DEBUG STDOUT: 1c1
   412	< # Create a vmdb2-ansible.yaml file for it to be used by vmdb2
   413	---
   414	> # Use dedicated Ansible task for personal infra (jeanmarc.lacroix@free.fr)
   415	6c6
   416	<     - name: test
   417	---
   418	>     - name: 1/3 disable Apparmor in order to correct LXC startup 
   419	8c8,28
   420	<         echo test
   421	---
   422	>         sed  \
   423	>           -i \
   424	>           's/ifnames=0/ifnames=0 apparmor=0 cgroup_enable=memory loglevel=7/g' \
   425	>           /etc/default/flash-kernel \
   426	>         && \
   427	>         flash-kernel
   428	> 
   429	>     - name: 2/3 Install python and openssh-server as defined in Debian standard Buster
   430	>       shell: |
   431	>         apt-get install -y python openssh-server
   432	> 
   433	>     - name: 3/3 Install public ssh key into root account
   434	>       shell: |
   435	>         mkdir -p /root/.ssh \
   436	>           && \
   437	>         echo \
   438	>           "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICqkpxBMUFMFqu7vgPCb9ys4HGHP1aobyQDJQ37yFwbR -- ssh-key for ansible@solo samedi 14 décembre 2019, 08:13:33 (UTC+0100) br-ansible.2.7.5-debian-stretch-9.11-dns-android 33cc980c87863820dfa6e23ed24e83a65ad459e4  --" \
   439	>           > /root/.ssh/authorized_keys
   440	> 
   441	> 
   442	> 
   443	
   444	DEBUG STDERR: 
   445	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   446	INFO Running step: {'create-file': '/etc/resolv.conf', 'contents': ''}
   447	INFO Calling <bound method CreateFileStepRunner.run of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   448	INFO Creating file /tmp/tmppbfbuwjv//etc/resolv.conf, uid 0, gid 0, perms 644
   449	INFO Calling <bound method StepRunnerInterface.run_even_if_skipped of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   450	INFO Running teardown: {'create-file': '/etc/resolv.conf', 'contents': ''}
   451	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   452	INFO Running teardown: {'root-fs': 'root', 'shell': 'umount $ROOT/dev\numount $ROOT/proc\nrm $ROOT/etc/flash-kernel/machine\ndiff vmdb2-ansible.yaml.example vmdb2-ansible.yaml && test -L vmdb2-ansible.yaml && rm vmdb2-ansible.yaml || true'}
   453	INFO Calling <bound method StepRunnerInterface.teardown of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   454	INFO Running teardown: {'ansible': 'root', 'playbook': 'vmdb2-ansible.yaml'}
   455	INFO Calling <bound method AnsibleStepRunner.teardown of <ansible_plugin.AnsibleStepRunner object at 0x7f37632682b0>>
   456	INFO Removing /tmp/tmpo8f5hxg7
   457	INFO Running teardown: {'root-fs': 'root', 'shell': 'test -e vmdb2-ansible.yaml || ln -s vmdb2-ansible.yaml.example vmdb2-ansible.yaml\nmount -t proc proc $ROOT/proc\nmount -o bind /dev $ROOT/dev'}
   458	INFO Calling <bound method StepRunnerInterface.teardown of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   459	INFO Running teardown: {'create-file': '/etc/network/interfaces.d/eth1', 'contents': 'auto eth1\niface eth1 inet dhcp\n'}
   460	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   461	INFO Running teardown: {'create-file': '/etc/network/interfaces.d/eth0', 'contents': 'auto eth0\niface eth0 inet dhcp\n'}
   462	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   463	INFO Running teardown: {'create-file': '/etc/network/interfaces.d/lo', 'contents': 'auto lo\niface lo inet loopback\n'}
   464	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   465	INFO Running teardown: {'root-fs': 'root', 'shell': 'dd conv=fsync,notrunc if=$ROOT/usr/lib/linux-u-boot-current-orangepi-r1_20.02.1_armhf/u-boot-sunxi-with-spl.bin of=orangepi-r1_buster_armhf.img bs=1024 seek=8'}
   466	INFO Calling <bound method StepRunnerInterface.teardown of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   467	INFO Running teardown: {'chroot': 'root', 'shell': 'dpkg -i linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb\nrm linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb'}
   468	INFO Calling <bound method StepRunnerInterface.teardown of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   469	INFO Running teardown: {'root-fs': 'root', 'shell': 'curl -o $ROOT/linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb https://apt.armbian.com/pool/main/l/linux-u-boot-orangepi-r1-current/linux-u-boot-current-orangepi-r1_20.02.1_armhf.deb'}
   470	INFO Calling <bound method StepRunnerInterface.teardown of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   471	INFO Running teardown: {'chroot': 'root', 'shell': 'sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab\n\nsed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \\  -f 1) net.ifnames=0_g" /etc/default/flash-kernel\nupdate-initramfs -c -k $(ls -l /vmlinuz | sed "s%^.*vmlinuz-\\(.*\\)$%\\1%g")\numount /dev\n\nsed -i "s_root:\\*:_root::_g" /etc/shadow'}
   472	INFO Calling <bound method StepRunnerInterface.teardown of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   473	INFO Running teardown: {'root-fs': 'root', 'shell': 'mount -o bind /dev $ROOT/dev'}
   474	INFO Calling <bound method StepRunnerInterface.teardown of <shell_plugin.ShellStepRunner object at 0x7f376321a940>>
   475	INFO Running teardown: {'create-file': '/etc/flash-kernel/machine', 'contents': 'Xunlong Orange Pi R1\n'}
   476	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   477	INFO Running teardown: {'create-file': '/etc/flash-kernel/db', 'contents': 'Machine: Xunlong Orange Pi R1\nKernel-Flavors: armmp armmp-lpae\nBoot-Script-Path: /boot/boot.scr\nDTB-Id: sun8i-h2-plus-orangepi-r1.dtb\nU-Boot-Script-Name: bootscr.sunxi\nRequired-Packages: u-boot-tools\n'}
   478	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   479	INFO Running teardown: {'fstab': 'root'}
   480	INFO Calling <bound method StepRunnerInterface.teardown of <fstab_plugin.FstabStepRunner object at 0x7f376321a710>>
   481	INFO Running teardown: {'create-file': '/etc/hostname', 'contents': 'OrangePiR1\n'}
   482	INFO Calling <bound method StepRunnerInterface.teardown of <create_file_plugin.CreateFileStepRunner object at 0x7f376321a630>>
   483	INFO Running teardown: {'chroot': 'root', 'shell': 'apt-get update\napt-get -y upgrade'}
   484	INFO Calling <bound method StepRunnerInterface.teardown of <chroot_plugin.ChrootStepRunner object at 0x7f376321a0f0>>
   485	INFO Running teardown: {'cache-rootfs': 'root', 'unless': 'rootfs_unpacked'}
   486	INFO Skipping as requested by unless
   487	INFO Running teardown: {'apt': 'install', 'packages': ['flash-kernel'], 'tag': 'root', 'unless': 'rootfs_unpacked'}
   488	INFO Skipping as requested by unless
   489	INFO Running teardown: {'chroot': 'root', 'shell': 'echo "deb http://ftp.de.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list\necho "deb http://security.debian.org/ buster/updates main contrib non-free" >> /etc/apt/sources.list\necho "deb http://ftp.de.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list\necho "deb http://ftp.de.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list\napt-get update\nmv /etc/kernel/postinst.d/initramfs-tools /\napt-get -y install -t buster-backports linux-image-armmp-lpae\nmv /initramfs-tools /etc/kernel/postinst.d/', 'unless': 'rootfs_unpacked'}
   490	INFO Skipping as requested by unless
   491	INFO Running teardown: {'apt': 'install', 'packages': ['initramfs-tools'], 'tag': 'root', 'unless': 'rootfs_unpacked'}
   492	INFO Skipping as requested by unless
   493	INFO Running teardown: {'qemu-debootstrap': 'buster', 'mirror': 'http://ftp.de.debian.org/debian', 'target': 'root', 'arch': 'armhf', 'components': ['main', 'contrib', 'non-free'], 'unless': 'rootfs_unpacked'}
   494	INFO Skipping as requested by unless
   495	INFO Running teardown: {'unpack-rootfs': 'root'}
   496	INFO Calling <bound method StepRunnerInterface.teardown of <unpack_rootfs_plugin.UnpackCacheStepRunner object at 0x7f376321aa58>>
   497	INFO Running teardown: {'mount': 'root'}
   498	INFO Calling <bound method MountStepRunner.teardown of <mount_plugin.MountStepRunner object at 0x7f376321aa20>>
   499	DEBUG Unmounting /tmp/tmppbfbuwjv and everything on top of it
   500	INFO Exec: ['umount', '/tmp/tmppbfbuwjv']
   501	DEBUG STDOUT: 
   502	DEBUG STDERR: 
   503	DEBUG Finishd unmounting /tmp/tmppbfbuwjv
   504	INFO Running teardown: {'mkfs': 'ext4', 'partition': 'root'}
   505	INFO Calling <bound method StepRunnerInterface.teardown of <mkfs_plugin.MkfsStepRunner object at 0x7f376321a828>>
   506	INFO Running teardown: {'kpartx': 'orangepi-r1_buster_armhf.img'}
   507	INFO Calling <bound method KpartxStepRunner.teardown of <kpartx_plugin.KpartxStepRunner object at 0x7f376321a780>>
   508	INFO Exec: ['kpartx', '-dsv', 'orangepi-r1_buster_armhf.img']
   509	DEBUG STDOUT: del devmap : loop0p1
   510	
   511	DEBUG STDERR: loop deleted : /dev/loop0
   512	
   513	INFO Running teardown: {'mkpart': 'primary', 'device': 'orangepi-r1_buster_armhf.img', 'start': '0%', 'end': '100%', 'tag': 'root'}
   514	INFO Calling <bound method StepRunnerInterface.teardown of <mkpart_plugin.MkpartStepRunner object at 0x7f376321a8d0>>
   515	INFO Running teardown: {'mklabel': 'msdos', 'device': 'orangepi-r1_buster_armhf.img'}
   516	INFO Calling <bound method StepRunnerInterface.teardown of <mklabel_plugin.MklabelStepRunner object at 0x7f376321a978>>
   517	INFO Running teardown: {'mkimg': 'orangepi-r1_buster_armhf.img', 'size': '3G'}
   518	INFO Calling <bound method StepRunnerInterface.teardown of <mkimg_plugin.MkimgStepRunner object at 0x7f376321a860>>
   519	INFO All went fine.
   520	INFO vmdb2 version 0.16 ends normally

Il reste donc à flasher ....(Attention au device /dev/sdc !)

Code : Tout sélectionner

sudo \
 dd \
 if=./orangepi-r1_buster_armhf.img \
 of=/dev/sdc \
 bs=1M \
 status=progress \
&& \
 sync
 
ce qui donne ...

Code : Tout sélectionner

3212836864 bytes (3.2 GB, 3.0 GiB) copied, 183 s, 17.6 MB/s
3072+0 records in
3072+0 records out
3221225472 bytes (3.2 GB, 3.0 GiB) copied, 233.486 s, 13.8 MB/s

Il reste donc à vérifier le démarage ce qui fera l'objet d'un autre post

:D
Cordialement

Répondre