Make-initrd development discussion
 help / color / mirror / Atom feed
From: Leonid Krivoshein <klark.devel@gmail.com>
To: make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] [PATCH v1 00/41] fork pipeline
Date: Sat, 25 Sep 2021 00:59:27 +0300
Message-ID: <a7bae7b2-6210-8044-bbef-33d3babd88b2@gmail.com> (raw)
In-Reply-To: <20210924190822.hkqkjmcsj3u3zazv@example.org>

[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]


24.09.2021 22:08, Alexey Gladkov пишет:
>> На первой итерации, чтобы не флудить, сделал поменьше коммитов. Всё равно
>> вспомнить "что за чем менялось" уже невозможно. На следующих итерациях
>> постараюсь сделать это более понятным. Поэтому первые три коммита позволяют
>> понять порядок перемещения, переименования и что создано нового. Заранее
>> извиняюсь за порядок и оформление коммитов, готов исправиться.
> Я начал читать, но так как кода очень много не успею за один день всё
> осилить. Я буду ещё комментировать.

Да это понятно, смотри, по возможности. А я тут подумал, что bootchain 
не просто же так форкался и переделывался, это не только демон и API -- 
основная часть его "клиентов" дойдёт до апстрима следом, но сейчас этого 
нет в удобном тебе виде. Может помочь черновик документации, что я 
выслал. Также прилагаю лог самой проблемной загрузки по FTP, сделанный в 
результате сегодняшней проверки отправленного в апстрим. Могу выслать 
такой же с локальной загрузкой, если надо. Где-то это может понять 
логику работы кода и подход к отладочным сообщениям. Ну и на вопросы 
буду рад ответить!


-- 
Best regards,
Leonid Krivoshein.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ftp.log --]
[-- Type: text/x-log; name="ftp.log", Size: 26554 bytes --]

[2021-09-24 17:23:33] bootchained: Starting server [INITRAMFS 2.24.0]...
[2021-09-24 17:23:33] bootchained: Booting with /proc/cmdline:
============================================================
BOOT_IMAGE=/boot/vmlinuz changedisk fastboot live root=bootchain bootchain=fg,altboot automatic=method:ftp,server:mirror.yandex.ru,directory:/altlinux-nightly/current/regular-rescue-latest-x86_64.iso bc_debug stagename=rescue nosplash
============================================================

[2021-09-24 17:23:33] bootchained: RUN: mkdir -p -- /dev/bootchain /.initrd/bootchain/passed
[2021-09-24 17:23:33] bootchained: RUN: mount -t tmpfs tmpfs /dev/bootchain
[2021-09-24 17:23:33] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:33] bootchain-loop: [0] Switching to foreground
[2021-09-24 17:23:33] bootchain-loop: LET: callnum_fg="1"
[2021-09-24 17:23:33] bootchain-loop: TTY2 will be activated after 2 seconds
[2021-09-24 17:23:34] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:34] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step0 /dev/bootchain/dst/step0
[2021-09-24 17:23:34] bootchain-loop: [0] Handler: /lib/bootchain/altboot
[2021-09-24 17:23:34] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:34] debug: debug for altboot [0] started
[2021-09-24 17:23:34] debug: PREV DIR: 
[2021-09-24 17:23:34] debug: Data DIR: /dev/bootchain/src/step0
[2021-09-24 17:23:34] debug: DEST DIR: /dev/bootchain/dst/step0
############################################################
[2021-09-24 17:23:34] debug: debug for altboot [0] finished
[2021-09-24 17:23:34] bootchain-loop: RUN: /lib/bootchain/altboot
[2021-09-24 17:23:34] altboot: [0] altboot started (automatic='method:ftp,server:mirror.yandex.ru,directory:/altlinux-nightly/current/regular-rescue-latest-x86_64.iso', stagename='rescue')
[2021-09-24 17:23:34] altboot: [0] WELCOME TEXT: 'Welcome to ALT!'
[2021-09-24 17:23:34] altboot: [0] DISTRIBUTION: 'ALT Workstation 10'
[2021-09-24 17:23:34] altboot: [0] ENTER: altboot_config
[2021-09-24 17:23:34] altboot: [0] RUN: ls -1 -- /lib/altboot/automatic.d/
[2021-09-24 17:23:34] altboot: [0] ENTER: use_hooks
[2021-09-24 17:23:34] altboot: [0] HOOKS: 'automatic.d'
[2021-09-24 17:23:34] altboot: [0] USING: 'automatic.d/directory'
[2021-09-24 17:23:34] altboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:34] altboot: [0] ENTER: use_hooks
[2021-09-24 17:23:34] altboot: [0] HOOKS: 'add-methods.d'
[2021-09-24 17:23:34] altboot: [0] USING: 'add-methods.d/100-nfs'
[2021-09-24 17:23:34] altboot: [0] boot method registered: 'nfs'
[2021-09-24 17:23:34] altboot: [0] USING: 'add-methods.d/150-ftp'
[2021-09-24 17:23:34] altboot: [0] boot method registered: 'ftp'
[2021-09-24 17:23:34] altboot: [0] USING: 'add-methods.d/250-http'
[2021-09-24 17:23:34] altboot: [0] boot method registered: 'http'
[2021-09-24 17:23:34] altboot: [0] USING: 'add-methods.d/450-cifs'
[2021-09-24 17:23:34] altboot: [0] boot method registered: 'cifs'
[2021-09-24 17:23:34] altboot: [0] USING: 'add-methods.d/750-cdrom'
[2021-09-24 17:23:34] altboot: [0] boot method registered: 'cdrom'
[2021-09-24 17:23:34] altboot: [0] USING: 'add-methods.d/850-disk'
[2021-09-24 17:23:34] altboot: [0] boot method registered: 'disk'
[2021-09-24 17:23:34] altboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:34] altboot: [0] RUN: ls -1 -- /lib/altboot/global-args.d/
[2021-09-24 17:23:34] altboot: [0] ENTER: use_hooks
[2021-09-24 17:23:34] altboot: [0] HOOKS: 'translate.d'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/050-overlays'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/070-lowmem'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/100-cifs'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/100-download'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/100-localdev'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/100-nfs'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/350-squashfs'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/520-liverw'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/550-liveboot'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/650-liverw'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/750-liveboot'
[2021-09-24 17:23:34] altboot: [0] USING: 'translate.d/950-liveboot'
[2021-09-24 17:23:34] altboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:34] altboot: [0] BOOTCHAIN REPLACED: 'noretry,waitnet,download,iso9660,squashfs,liveboot,rootfs'
[2021-09-24 17:23:34] altboot: [0] LEAVE: altboot_config
[2021-09-24 17:23:34] altboot: [0] ENTER: use_hooks
[2021-09-24 17:23:34] altboot: [0] HOOKS: 'forget-args.d'
[2021-09-24 17:23:34] altboot: [0] USING: 'forget-args.d/100-altboot'
[2021-09-24 17:23:34] altboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:35] altboot: [0] altboot steps configuration (/.initrd/bootchain/altboot.conf):
============================================================
ALTBOOT_OLDROOT=1
ALTBOOT_STEPS="waitnet download iso9660 squashfs liveboot"
ALTBOOT_DOWNLOAD0="method=ftp;to=TMPFS;server=mirror.yandex.ru;directory=/altlinux-nightly/current/regular-rescue-latest-x86_64.iso"
ALTBOOT_DOWNLOAD=1
ALTBOOT_LIVEBOOT0="stagename=rescue;method=ftp;flags=live_ro,rescue"
ALTBOOT_LIVEBOOT=1
ALTBOOT_SQUASHFS0="/rescue"
ALTBOOT_SQUASHFS=1
unset AUTOMATIC
unset STAGENAME
unset PROFILE
unset HASH
unset RESCUE
unset LIVE
unset LOWMEM
unset LIVE_RW
============================================================

[2021-09-24 17:23:35] altboot: [0] ENTER: bypass_results
[2021-09-24 17:23:35] altboot: [0] LEAVE: bypass_results
[2021-09-24 17:23:35] altboot: [0] altboot finished
[2021-09-24 17:23:35] bootchain-loop: chain will be reloaded by /.initrd/bootchain/bootchain.next:
============================================================
chainsteps="noretry,waitnet,download,iso9660,squashfs,liveboot,rootfs"
============================================================

[2021-09-24 17:23:35] bootchain-loop: RUN: rm -f -- /.initrd/bootchain/bootchain.next
[2021-09-24 17:23:35] bootchain-loop: remaining steps: noretry,waitnet,download,iso9660,squashfs,liveboot,rootfs
[2021-09-24 17:23:35] bootchain-loop: daemon will be stopped immediately after any step failure
[2021-09-24 17:23:35] bootchain-loop: remaining steps: waitnet,download,iso9660,squashfs,liveboot,rootfs
[2021-09-24 17:23:35] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:35] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step1 /dev/bootchain/dst/step1
[2021-09-24 17:23:35] bootchain-loop: [0] Handler: /lib/bootchain/waitnet
[2021-09-24 17:23:35] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:35] debug: debug for waitnet [0] started
[2021-09-24 17:23:35] debug: PREV DIR: /dev/bootchain/dst/step0
[2021-09-24 17:23:35] debug: Data DIR: /dev/bootchain/src/step1
[2021-09-24 17:23:35] debug: DEST DIR: /dev/bootchain/dst/step1
##############################
Previous step results (/dev/bootchain/dst/step0):
##############################
[2021-09-24 17:23:35] debug: debug for waitnet [0] finished
[2021-09-24 17:23:35] bootchain-loop: RUN: /lib/bootchain/waitnet
[2021-09-24 17:23:35] waitnet: [0] waitnet started
[2021-09-24 17:23:35] waitnet: network settings not defined in /proc/cmdline
[2021-09-24 17:23:35] waitnet: network device eth0 ready to connection
[2021-09-24 17:23:35] waitnet: [0] ENTER: bypass_results
[2021-09-24 17:23:35] waitnet: [0] RUN: rmdir -- /dev/bootchain/dst/step1
[2021-09-24 17:23:35] waitnet: [0] RUN: mv -f -- /dev/bootchain/dst/step0 /dev/bootchain/dst/step1
[2021-09-24 17:23:35] waitnet: [0] LEAVE: bypass_results
[2021-09-24 17:23:35] waitnet: [0] waitnet finished
[2021-09-24 17:23:35] bootchain-loop: RUN: touch /.initrd/bootchain/passed/waitnet
[2021-09-24 17:23:35] bootchain-loop: LET: callnum_waitnet="1"
[2021-09-24 17:23:35] bootchain-loop: remaining steps: download,iso9660,squashfs,liveboot,rootfs
[2021-09-24 17:23:35] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:35] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step2 /dev/bootchain/dst/step2
[2021-09-24 17:23:35] bootchain-loop: [0] Handler: /lib/bootchain/download
[2021-09-24 17:23:35] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:35] debug: debug for download [0] started
[2021-09-24 17:23:35] debug: PREV DIR: /dev/bootchain/dst/step1
[2021-09-24 17:23:35] debug: Data DIR: /dev/bootchain/src/step2
[2021-09-24 17:23:35] debug: DEST DIR: /dev/bootchain/dst/step2
##############################
Previous step results (/dev/bootchain/dst/step1):
##############################
[2021-09-24 17:23:35] debug: debug for download [0] finished
[2021-09-24 17:23:35] bootchain-loop: RUN: /lib/bootchain/download
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: to="TMPFS"
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: method="ftp"
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: url=""
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: server="mirror.yandex.ru"
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: directory="/altlinux-nightly/current/regular-rescue-latest-x86_64.iso"
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: fuid=""
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: user=""
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: pass=""
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: imgsize=""
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] ENTER: get_bootarg
[2021-09-24 17:23:35] download: [0] LET: timeout=""
[2021-09-24 17:23:35] download: [0] LEAVE: get_bootarg
[2021-09-24 17:23:35] download: [0] download started (method=ftp;to=TMPFS;server=mirror.yandex.ru;directory=/altlinux-nightly/current/regular-rescue-latest-x86_64.iso)
[2021-09-24 17:23:35] download: [0] ENTER: get_file_size
[2021-09-24 17:23:35] download: retrieving image file size: 'ftp://mirror.yandex.ru/altlinux-nightly/current/regular-rescue-latest-x86_64.iso'
[2021-09-24 17:23:35] download: [0] RUN: mktemp -qt
[2021-09-24 17:23:35] download: [0] RUN: rm -f -- /tmp/tmp.wcubgZ
[2021-09-24 17:23:35] download: [0] RUN: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 0 --write-out %{http_code} --ftp-pasv --output /tmp/tmp.wcubgZ --url ftp://mirror.yandex.ru/altlinux-nightly/current/regular-rescue-latest-x86_64.iso
============================================================
Last-Modified: Wed, 22 Sep 2021 05:37:55 GMT
Content-Length: 658132992
Accept-ranges: bytes
============================================================

[2021-09-24 17:23:36] download: [0] curl status: 0, protoclol status: 350
[2021-09-24 17:23:36] download: [0] RUN: rm -f -- /tmp/tmp.wcubgZ
[2021-09-24 17:23:36] download: [0] LEAVE: get_file_size
[2021-09-24 17:23:36] download: [0] ENTER: check_avail_space
[2021-09-24 17:23:36] download: available: 1816022 KiB, required: 642709 KiB
[2021-09-24 17:23:36] download: [0] LEAVE: check_avail_space
[2021-09-24 17:23:36] download: [0] ENTER: download_image
[2021-09-24 17:23:36] download: downloading image: 'ftp://mirror.yandex.ru/altlinux-nightly/current/regular-rescue-latest-x86_64.iso'
[2021-09-24 17:23:56] download: [0] LEAVE: download_image
[2021-09-24 17:23:56] download: [0] RUN: chmod -- 0600 /run/boot-image.iso
[2021-09-24 17:23:56] download: [0] ENTER: lomount
[2021-09-24 17:23:56] download: [0] RUN: losetup -Lrf --show -- /run/boot-image.iso
[2021-09-24 17:23:56] download: [0] losetup('/run/boot-image.iso') result: '/dev/loop0'
[2021-09-24 17:23:56] download: [0] LET: devname="/dev/loop0"
[2021-09-24 17:23:56] download: [0] LEAVE: lomount
[2021-09-24 17:23:56] download: [0] DEVNAME: /dev/loop0
[2021-09-24 17:23:56] download: [0] FILESIZE: 658132992
[2021-09-24 17:23:56] download: [0] RUN: cp -a -- /dev/loop0 /dev/bootchain/dst/step2/dev
[2021-09-24 17:23:56] download: [0] ENTER: stage2_getenv
[2021-09-24 17:23:56] download: [0] KEY: 'METHOD'
[2021-09-24 17:23:56] download: [0] LEAVE: stage2_getenv
[2021-09-24 17:23:56] download: [0] ENTER: stage2_setenv
[2021-09-24 17:23:56] download: [0] ARGS: METHOD="nfs"
[2021-09-24 17:23:56] download: [0] LEAVE: stage2_setenv
[2021-09-24 17:23:56] download: [0] ENTER: stage2_setenv
[2021-09-24 17:23:56] download: [0] ARGS: URL="ftp://mirror.yandex.ru/altlinux-nightly/current/regular-rescue-latest-x86_64.iso"
[2021-09-24 17:23:56] download: [0] LEAVE: stage2_setenv
[2021-09-24 17:23:56] download: [0] download finished
[2021-09-24 17:23:56] bootchain-loop: RUN: touch /.initrd/bootchain/passed/download
[2021-09-24 17:23:56] bootchain-loop: LET: callnum_download="1"
[2021-09-24 17:23:56] bootchain-loop: remaining steps: iso9660,squashfs,liveboot,rootfs
[2021-09-24 17:23:56] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:56] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step3 /dev/bootchain/dst/step3
[2021-09-24 17:23:56] bootchain-loop: [0] Handler: /lib/bootchain/iso9660
[2021-09-24 17:23:56] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:56] debug: debug for iso9660 [0] started
[2021-09-24 17:23:56] debug: PREV DIR: /dev/bootchain/dst/step2
[2021-09-24 17:23:56] debug: Data DIR: /dev/bootchain/src/step3
[2021-09-24 17:23:56] debug: DEST DIR: /dev/bootchain/dst/step3
##############################
Previous step results (/dev/bootchain/dst/step2):
dev (7:0 -> /dev/loop0)
DEVNAME (7:0 -> /dev/loop0)
FILESIZE (658132992)
##############################
[2021-09-24 17:23:56] debug: debug for iso9660 [0] finished
[2021-09-24 17:23:56] bootchain-loop: RUN: /lib/bootchain/iso9660
[2021-09-24 17:23:56] iso9660: [0] iso9660 started
[2021-09-24 17:23:56] iso9660: [0] RUN: mkdir -p -- /image
[2021-09-24 17:23:56] iso9660: [0] RUN: mount -t iso9660 -o ro -- /dev/loop0 /image
[2021-09-24 17:23:56] iso9660: [0] ENTER: bypass_results
[2021-09-24 17:23:56] iso9660: [0] RUN: rmdir -- /dev/bootchain/dst/step3
[2021-09-24 17:23:56] iso9660: [0] RUN: ln -snf -- /image /dev/bootchain/dst/step3
[2021-09-24 17:23:56] iso9660: [0] LEAVE: bypass_results
[2021-09-24 17:23:56] iso9660: [0] iso9660 finished
[2021-09-24 17:23:56] bootchain-loop: RUN: touch /.initrd/bootchain/passed/iso9660
[2021-09-24 17:23:56] bootchain-loop: LET: callnum_iso9660="1"
[2021-09-24 17:23:56] bootchain-loop: remaining steps: squashfs,liveboot,rootfs
[2021-09-24 17:23:56] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:56] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step4 /dev/bootchain/dst/step4
[2021-09-24 17:23:56] bootchain-loop: [0] Handler: /lib/bootchain/squashfs
[2021-09-24 17:23:56] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:56] debug: debug for squashfs [0] started
[2021-09-24 17:23:56] debug: PREV DIR: /image
[2021-09-24 17:23:56] debug: Data DIR: /dev/bootchain/src/step4
[2021-09-24 17:23:56] debug: DEST DIR: /dev/bootchain/dst/step4
##############################
Previous step results (/image):
2021-09-22-05-29-20-00
EFI/
boot/
docs/
license.all.html
license.ru.html
mediacheck
rescue
##############################
[2021-09-24 17:23:56] debug: debug for squashfs [0] finished
[2021-09-24 17:23:56] bootchain-loop: RUN: /lib/bootchain/squashfs
[2021-09-24 17:23:56] squashfs: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] squashfs: [0] LET: SQUASHFS="/rescue"
[2021-09-24 17:23:56] squashfs: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] squashfs: [0] squashfs started (/rescue)
[2021-09-24 17:23:56] squashfs: [0] ENTER: lomount
[2021-09-24 17:23:56] squashfs: [0] RUN: losetup -Lrf --show -- /image/rescue
[2021-09-24 17:23:56] squashfs: [0] losetup('/image/rescue') result: '/dev/loop1'
[2021-09-24 17:23:56] squashfs: [0] LET: devname="/dev/loop1"
[2021-09-24 17:23:56] squashfs: [0] LEAVE: lomount
[2021-09-24 17:23:56] squashfs: [0] RUN: mount -t squashfs -r -- /dev/loop1 /root
[2021-09-24 17:23:56] squashfs: [0] ENTER: bypass_results
[2021-09-24 17:23:56] squashfs: [0] RUN: rmdir -- /dev/bootchain/dst/step4
[2021-09-24 17:23:56] squashfs: [0] RUN: ln -snf -- /root /dev/bootchain/dst/step4
[2021-09-24 17:23:56] squashfs: [0] LEAVE: bypass_results
[2021-09-24 17:23:56] squashfs: [0] squashfs finished
[2021-09-24 17:23:56] bootchain-loop: RUN: touch /.initrd/bootchain/passed/squashfs
[2021-09-24 17:23:56] bootchain-loop: LET: callnum_squashfs="1"
[2021-09-24 17:23:56] bootchain-loop: remaining steps: liveboot,rootfs
[2021-09-24 17:23:56] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:56] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step5 /dev/bootchain/dst/step5
[2021-09-24 17:23:56] bootchain-loop: [0] Handler: /lib/bootchain/liveboot
[2021-09-24 17:23:56] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:56] debug: debug for liveboot [0] started
[2021-09-24 17:23:56] debug: PREV DIR: /root
[2021-09-24 17:23:56] debug: Data DIR: /dev/bootchain/src/step5
[2021-09-24 17:23:56] debug: DEST DIR: /dev/bootchain/dst/step5
##############################
Previous step results (/root):
bin/
boot/
dev/
etc/
home/
image/
lib/
lib64/
libx32/
media/
mnt/
opt/
proc/
root/
run/
sbin/
selinux/
srv/
sys/
tmp/
##############################
[2021-09-24 17:23:56] debug: debug for liveboot [0] finished
[2021-09-24 17:23:56] bootchain-loop: RUN: /lib/bootchain/liveboot
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: stagename="rescue"
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: method="ftp"
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: directory=""
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: overlayroot=""
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: profile=""
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: overlays=""
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: flags="live_ro,rescue"
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] ENTER: get_bootarg
[2021-09-24 17:23:56] liveboot: [0] LET: timeout=""
[2021-09-24 17:23:56] liveboot: [0] LEAVE: get_bootarg
[2021-09-24 17:23:57] liveboot: [0] liveboot started (stagename=rescue;method=ftp;flags=live_ro,rescue)
[2021-09-24 17:23:57] liveboot: [0] ENTER: use_hooks
[2021-09-24 17:23:57] liveboot: [0] HOOKS: 'liveboot-init.d'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-init.d/010-waitnet'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-init.d/100-overlayroot'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-init.d/400-liverw'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-init.d/700-cifs'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-init.d/700-nfs'
[2021-09-24 17:23:57] liveboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:57] liveboot: running rescue
[2021-09-24 17:23:57] liveboot: [0] ENTER: use_hooks
[2021-09-24 17:23:57] liveboot: [0] HOOKS: 'liveboot-pre.d'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-pre.d/400-liverw'
[2021-09-24 17:23:57] liveboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:57] liveboot: [0] ENTER: do_overlay
[2021-09-24 17:23:57] liveboot: remounting / with overlayfs
[2021-09-24 17:23:57] liveboot: [0] RUN: mkdir -p -- /root.rw /root.ro
[2021-09-24 17:23:57] liveboot: [0] RUN: mount -t tmpfs -o mode=755 -- none /root.rw
[2021-09-24 17:23:57] liveboot: [0] RUN: mkdir -p -- /root.rw/rw /root.rw/wk
[2021-09-24 17:23:57] liveboot: [0] RUN: mount --move -- /root /root.ro
[2021-09-24 17:23:57] liveboot: [0] ENTER: use_hooks
[2021-09-24 17:23:57] liveboot: [0] HOOKS: 'livecd-slice.d'
[2021-09-24 17:23:57] liveboot: [0] USING: 'livecd-slice.d/300-localdev'
[2021-09-24 17:23:57] liveboot: [0] USING: 'livecd-slice.d/700-cifs'
[2021-09-24 17:23:57] liveboot: [0] USING: 'livecd-slice.d/700-nfs'
[2021-09-24 17:23:57] liveboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:57] liveboot: [0] RUN: mount -t overlay -o lowerdir=/root.ro,upperdir=/root.rw/rw,workdir=/root.rw/wk -- overlay /root
[2021-09-24 17:23:57] liveboot: [0] RUN: mkdir -p -- /root/.ro /root/.rw
[2021-09-24 17:23:57] liveboot: [0] RUN: mount --move -- /root.ro /root/.ro
[2021-09-24 17:23:57] liveboot: [0] RUN: mount --move -- /root.rw /root/.rw
[2021-09-24 17:23:57] liveboot: [0] RUN: rmdir -- /root.rw /root.ro
[2021-09-24 17:23:57] liveboot: rootfs overlayed with overlayfs
[2021-09-24 17:23:57] liveboot: [0] RUN: mkdir -p -- /root/image
[2021-09-24 17:23:57] liveboot: [0] RUN: mount --move -- /image /root/image
[2021-09-24 17:23:57] liveboot: [0] ENTER: use_hooks
[2021-09-24 17:23:57] liveboot: [0] HOOKS: 'liveboot-post.d'
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-post.d/900-waitnet'
[2021-09-24 17:23:57] liveboot: [0] ENTER: export_netconf
[2021-09-24 17:23:57] liveboot: [0] ENTER: stage2_getenv
[2021-09-24 17:23:57] liveboot: [0] KEY: 'DEVICE'
[2021-09-24 17:23:57] liveboot: [0] stage2_getenv('DEVICE') result: ''
[2021-09-24 17:23:57] liveboot: [0] LEAVE: stage2_getenv
[2021-09-24 17:23:57] liveboot: [0] RUN: ip -4 addr show dev eth0
[2021-09-24 17:23:57] liveboot: [0] ENTER: get_first_dns
[2021-09-24 17:23:57] liveboot: [0] LEAVE: get_first_dns
[2021-09-24 17:23:57] liveboot: [0] RUN: hostname -s
[2021-09-24 17:23:57] liveboot: [0] ENTER: get_default_gateway
[2021-09-24 17:23:57] liveboot: [0] RUN: ip -4 route
[2021-09-24 17:23:57] liveboot: [0] LEAVE: get_default_gateway
[2021-09-24 17:23:57] liveboot: [0] ENTER: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ARGS: DNS_SERVER="10.0.2.3"
[2021-09-24 17:23:57] liveboot: [0] LEAVE: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ENTER: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ARGS: GATEWAY="10.0.2.2"
[2021-09-24 17:23:57] liveboot: [0] LEAVE: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ENTER: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ARGS: DEVICE="eth0"
[2021-09-24 17:23:57] liveboot: [0] LEAVE: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ENTER: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] ARGS: BOOTPROTO="dhcp"
[2021-09-24 17:23:57] liveboot: [0] LEAVE: stage2_setenv
[2021-09-24 17:23:57] liveboot: [0] LEAVE: export_netconf
[2021-09-24 17:23:57] liveboot: [0] USING: 'liveboot-post.d/950-altboot'
[2021-09-24 17:23:57] liveboot: [0] ENTER: altboot_cleanup
[2021-09-24 17:23:57] liveboot: [0] LEAVE: altboot_cleanup
[2021-09-24 17:23:57] liveboot: Spawning init...
[2021-09-24 17:23:57] liveboot: [0] LEAVE: use_hooks
[2021-09-24 17:23:57] liveboot: [0] RUN: cp -Lf -- /etc/resolv.conf /root/etc/
[2021-09-24 17:23:57] liveboot: [0] ENTER: bypass_results
[2021-09-24 17:23:57] liveboot: [0] RUN: rmdir -- /dev/bootchain/dst/step5
[2021-09-24 17:23:57] liveboot: [0] RUN: ln -snf -- /root /dev/bootchain/dst/step5
[2021-09-24 17:23:57] liveboot: [0] LEAVE: bypass_results
[2021-09-24 17:23:57] liveboot: [0] LEAVE: do_overlay
[2021-09-24 17:23:57] liveboot: [0] liveboot finished
[2021-09-24 17:23:57] bootchain-loop: RUN: touch /.initrd/bootchain/passed/liveboot
[2021-09-24 17:23:57] bootchain-loop: LET: callnum_liveboot="1"
[2021-09-24 17:23:57] bootchain-loop: remaining steps: rootfs
[2021-09-24 17:23:57] bootchain-loop: LET: callnum="0"
[2021-09-24 17:23:57] bootchain-loop: RUN: mkdir -p -- /dev/bootchain/src/step6 /dev/bootchain/dst/step6
[2021-09-24 17:23:57] bootchain-loop: [0] Handler: /lib/bootchain/rootfs
[2021-09-24 17:23:57] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:57] debug: debug for rootfs [0] started
[2021-09-24 17:23:57] debug: PREV DIR: /root
[2021-09-24 17:23:57] debug: Data DIR: /dev/bootchain/src/step6
[2021-09-24 17:23:57] debug: DEST DIR: /dev/bootchain/dst/step6
##############################
Previous step results (/root):
bin/
boot/
dev/
etc/
home/
image/
lib/
lib64/
libx32/
media/
mnt/
opt/
proc/
root/
run/
sbin/
selinux/
srv/
sys/
tmp/

Mount points and devices:
/dev/loop0 on /root/image type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop1 on /root/.ro type squashfs (ro,relatime)
none on /root/.rw type tmpfs (rw,relatime,mode=755)
##############################
[2021-09-24 17:23:57] debug: debug for rootfs [0] finished
[2021-09-24 17:23:57] bootchain-loop: RUN: /lib/bootchain/rootfs
[2021-09-24 17:23:57] rootfs: [0] ENTER: break_bc_loop
[2021-09-24 17:23:57] rootfs: [0] LEAVE: break_bc_loop
[2021-09-24 17:23:57] bootchain-loop: RUN: touch /.initrd/bootchain/passed/rootfs
[2021-09-24 17:23:57] bootchain-loop: remaining steps after breaking loop: rootfs
[2021-09-24 17:23:57] bootchain-loop: finishing in bootchain mode
[2021-09-24 17:23:57] bootchain-loop: [0] Handler: /lib/bootchain/debug
[2021-09-24 17:23:57] bootchain-loop: RUN: /lib/bootchain/debug
[2021-09-24 17:23:57] debug: debug for STAGE2 [0] started
[2021-09-24 17:23:57] debug: PREV DIR: /dev/bootchain/dst/step6
[2021-09-24 17:23:57] debug: Data DIR: /root
[2021-09-24 17:23:57] debug: DEST DIR: 
##############################
Previous step results (/dev/bootchain/dst/step6):

Mount points and devices:
/dev/loop0 on /root/image type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop1 on /root/.ro type squashfs (ro,relatime)
none on /root/.rw type tmpfs (rw,relatime,mode=755)
##############################
[2021-09-24 17:23:57] debug: debug for STAGE2 [0] finished
[2021-09-24 17:23:57] bootchain-loop: last step finished with exit code 0
[2021-09-24 17:23:57] bootchain-loop: RUN: cp -Lf -- /var/log/bootchained.log /root/var/log/

  reply	other threads:[~2021-09-24 21:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 15:52 Leonid Krivoshein
2021-09-24 16:56 ` Alexey Gladkov
2021-09-24 18:42   ` Leonid Krivoshein
2021-09-24 19:06     ` Alexey Gladkov
2021-09-26 18:56       ` Leonid Krivoshein
2021-09-27  9:15         ` Alexey Gladkov
2021-09-27 13:17           ` Leonid Krivoshein
2021-09-27 13:55             ` Alexey Gladkov
2021-10-13 17:06               ` Leonid Krivoshein
2021-10-13 18:38                 ` Alexey Gladkov
2021-10-13 18:48                   ` Leonid Krivoshein
2021-09-24 19:08 ` Alexey Gladkov
2021-09-24 21:59   ` Leonid Krivoshein [this message]
2021-09-26 14:29     ` Alexey Gladkov
2021-09-26 20:09       ` Leonid Krivoshein
2021-09-27  9:23         ` Alexey Gladkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7bae7b2-6210-8044-bbef-33d3babd88b2@gmail.com \
    --to=klark.devel@gmail.com \
    --cc=make-initrd@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Make-initrd development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
		make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
	public-inbox-index make-initrd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.make-initrd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git