[2024-12-04 21:37:08] Started with arguments: --backup=http://ftp.altlinux.org/pub/people/klark/deploy/example --deploy --poweroff [2024-12-04 21:37:08] Executing: mktemp -dt -- system-restore-XXXXXXXX.tmp [2024-12-04 21:37:08] Executing: mktemp -qt [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.unrW54LdHQ [2024-12-04 21:37:08] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.unrW54LdHQ --url http://ftp.altlinux.org/pub/people/klark/deploy/example/sysrest.ini [2024-12-04 21:37:08] /root/tmp/tmp.unrW54LdHQ contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:37:08 GMT Content-Type: application/octet-stream Content-Length: 15504 Last-Modified: Wed, 04 Dec 2024 17:33:39 GMT Connection: keep-alive ETag: "67509273-3c90" Accept-Ranges: bytes ######################################## [2024-12-04 21:37:08] curl status: 0, protocol status: 200 [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.unrW54LdHQ [2024-12-04 21:37:08] Downloading configuration 'sysrest.ini'... [2024-12-04 21:37:08] Using user-defined configuration: 'sysrest.ini'... [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/system-restore-yGSfiO9C.tmp/tmp-user.sh [2024-12-04 21:37:08] Executing: mktemp -qt [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.mCSj3NGIDG [2024-12-04 21:37:08] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.mCSj3NGIDG --url http://ftp.altlinux.org/pub/people/klark/deploy/example/hooks.sh [2024-12-04 21:37:08] /root/tmp/tmp.mCSj3NGIDG contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:37:08] curl status: 0, protocol status: 404 [2024-12-04 21:37:08] unrecoverable http error: 404 [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.mCSj3NGIDG [2024-12-04 21:37:08] Executing: mktemp -qt [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.DiVcWmC7cT [2024-12-04 21:37:08] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.DiVcWmC7cT --url http://ftp.altlinux.org/pub/people/klark/deploy/example/META.tgz [2024-12-04 21:37:08] /root/tmp/tmp.DiVcWmC7cT contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: application/x-gzip Content-Length: 1589 Last-Modified: Wed, 04 Dec 2024 17:36:39 GMT Connection: keep-alive ETag: "67509327-635" Accept-Ranges: bytes ######################################## [2024-12-04 21:37:08] curl status: 0, protocol status: 200 [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.DiVcWmC7cT [2024-12-04 21:37:08] Executing: mktemp -qt [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.QGdOEvpaAA [2024-12-04 21:37:08] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.QGdOEvpaAA --url http://ftp.altlinux.org/pub/people/klark/deploy/example/root.tgz [2024-12-04 21:37:08] /root/tmp/tmp.QGdOEvpaAA contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: application/x-gzip Content-Length: 496751502 Last-Modified: Wed, 04 Dec 2024 17:36:39 GMT Connection: keep-alive ETag: "67509327-1d9bd38e" Accept-Ranges: bytes ######################################## [2024-12-04 21:37:08] curl status: 0, protocol status: 200 [2024-12-04 21:37:08] Executing: rm -f -- /root/tmp/tmp.QGdOEvpaAA [2024-12-04 21:37:09] Executing: mktemp -qt [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.M1bZNbmqlC [2024-12-04 21:37:09] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.M1bZNbmqlC --url http://ftp.altlinux.org/pub/people/klark/deploy/example/profiles/CATALOG.lst [2024-12-04 21:37:09] /root/tmp/tmp.M1bZNbmqlC contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:37:09] curl status: 0, protocol status: 404 [2024-12-04 21:37:09] unrecoverable http error: 404 [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.M1bZNbmqlC [2024-12-04 21:37:09] Entering hook 'profile_not_found'... [2024-12-04 21:37:09] Leaving hook 'profile_not_found'... [2024-12-04 21:37:09] Entering hook 'select_profile'... [2024-12-04 21:37:09] Leaving hook 'select_profile'... [2024-12-04 21:37:09] Entering hook 'check_hardware'... [2024-12-04 21:37:09] Leaving hook 'check_hardware'... [2024-12-04 21:37:09] Executing: mktemp -qt [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.ieAIBJUgrb [2024-12-04 21:37:09] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.ieAIBJUgrb --url http://ftp.altlinux.org/pub/people/klark/deploy/example/home.tgz [2024-12-04 21:37:09] /root/tmp/tmp.ieAIBJUgrb contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:37:09] curl status: 0, protocol status: 404 [2024-12-04 21:37:09] unrecoverable http error: 404 [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.ieAIBJUgrb [2024-12-04 21:37:09] Executing: mktemp -qt [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.Nf9JzBss53 [2024-12-04 21:37:09] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.Nf9JzBss53 --url http://ftp.altlinux.org/pub/people/klark/deploy/example/var.tgz [2024-12-04 21:37:09] /root/tmp/tmp.Nf9JzBss53 contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:37:09] curl status: 0, protocol status: 404 [2024-12-04 21:37:09] unrecoverable http error: 404 [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.Nf9JzBss53 [2024-12-04 21:37:09] Executing: mktemp -qt [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.n0S5cgbIDo [2024-12-04 21:37:09] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.n0S5cgbIDo --url http://ftp.altlinux.org/pub/people/klark/deploy/example/plain.sh [2024-12-04 21:37:09] /root/tmp/tmp.n0S5cgbIDo contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:37:09 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:37:09] curl status: 0, protocol status: 404 [2024-12-04 21:37:09] unrecoverable http error: 404 [2024-12-04 21:37:09] Executing: rm -f -- /root/tmp/tmp.n0S5cgbIDo [2024-12-04 21:37:09] Checking backup metadata... [2024-12-04 21:37:09] Executing: unpigz -qnc [2024-12-04 21:37:09] Executing: tar -xpf - -C /root/tmp/system-restore-yGSfiO9C.tmp [2024-12-04 21:37:09] Executing: head -n1 -- /root/tmp/system-restore-yGSfiO9C.tmp/ARCH [2024-12-04 21:37:09] Executing: uname -m [2024-12-04 21:37:09] Executing: head -n1 -- /root/tmp/system-restore-yGSfiO9C.tmp/ORGHOST [2024-12-04 21:37:09] Executing: mountpoint -d -- / [2024-12-04 21:37:09] Executing: readlink -fv -- /sys/dev/block/0:24 [2024-12-04 21:37:09] Executing: mountpoint -d -- /image [2024-12-04 21:37:09] Executing: readlink -fv -- /sys/dev/block/11:0 [2024-12-04 21:37:09] Executing: grep -sE ^DEVNAME= /sys/devices/pci0000:00/0000:00:1f.2/ata9/host8/target8:0:0/8:0:0:0/block/sr0/uevent [2024-12-04 21:37:09] Executing: mountpoint -x -- /dev/sr0 [2024-12-04 21:37:09] Executing: readlink -fv -- /sys/dev/block/11:0 [2024-12-04 21:37:09] Entering hook 'filter_drive'... [2024-12-04 21:37:09] Leaving hook 'filter_drive'... [2024-12-04 21:37:09] Entering hook 'filter_drive'... [2024-12-04 21:37:09] Leaving hook 'filter_drive'... [2024-12-04 21:37:09] Executing: udevadm info -- /dev/sda [2024-12-04 21:37:09] Executing: udevadm info -- /dev/sda [2024-12-04 21:37:09] Executing: udevadm info -- /dev/sda [2024-12-04 21:37:09] Executing: udevadm info -- /dev/sdb [2024-12-04 21:37:09] Executing: udevadm info -- /dev/sdb [2024-12-04 21:37:09] Executing: udevadm info -- /dev/sdb [2024-12-04 21:37:09] Executing: eval env LC_ALL=C dialog --backtitle "ALT Linux Deployment System: STICK-v1.0" --title "[ Target drive ]" --help-button --help-label Info --no-cancel --menu "\nSelect the target device to install the system to:" 10 55 2 "/dev/sda" "21.47 GB QEMU HARDDISK QM00013 2.5+" "/dev/sdb" "21.47 GB QEMU HARDDISK QM00015 2.5+" [2024-12-04 21:37:16] Executing: udevadm info -- /dev/sda [2024-12-04 21:37:16] Executing: udevadm info -- /dev/sda [2024-12-04 21:37:16] Executing: udevadm info -- /dev/sda [2024-12-04 21:37:16] Executing: lsblk -d -n -o TRAN -- /dev/sda [2024-12-04 21:37:17] Entering hook 'auto_swap_size'... [2024-12-04 21:37:17] Executing: sed -n -E s/^MemTotal:\s+//p /proc/meminfo [2024-12-04 21:37:17] Leaving hook 'auto_swap_size'... [2024-12-04 21:37:17] Executing: ip route [2024-12-04 21:37:17] Executing: ip link show dev enp0s4 [2024-12-04 21:37:17] Executing: hostname animal-123456 [2024-12-04 21:37:17] Executing: lsblk -f [2024-12-04 21:37:17] Initializing disk(s)... [2024-12-04 21:37:17] Executing: ls -r -- /dev/sda?* [2024-12-04 21:37:17] Executing: sfdisk -q -f --no-reread -W always -X dos -- /dev/sda [2024-12-04 21:37:17] Executing: rm -f -- /root/tmp/system-restore-yGSfiO9C.tmp/disk-layout.dos [2024-12-04 21:37:17] Executing: env LC_ALL=C sfdisk -q -f -l --color=never -- /dev/sda [2024-12-04 21:37:17] Executing: sed 1d;s/ */ /g [2024-12-04 21:37:17] Executing: addpart /dev/sda 1 2048 206847 [2024-12-04 21:37:17] Executing: addpart /dev/sda 2 206848 8595455 [2024-12-04 21:37:17] Executing: addpart /dev/sda 3 * 8595456 [2024-12-04 21:37:17] Executing: addpart /dev/sda 4 29566976 41943039 [2024-12-04 21:37:17] Executing: blockdev --rereadpt /dev/sda [2024-12-04 21:37:17] Executing: udevadm trigger -q -- /dev/sda [2024-12-04 21:37:17] Executing: env LC_ALL=C sfdisk -q -f -l --color=never -- /dev/sda [2024-12-04 21:37:17] Executing: sed 1d;s/ .*//g [2024-12-04 21:37:17] Executing: udevadm settle -t5 [2024-12-04 21:37:18] Executing: env LC_ALL=C sfdisk -l -- /dev/sda [2024-12-04 21:37:18] Executing: sed -n s/^Disklabel type: //p [2024-12-04 21:37:18] Executing: head -n1 [2024-12-04 21:37:18] Executing: env LC_ALL=C sfdisk -q -l -o Device,Id -- /dev/sda [2024-12-04 21:37:18] Executing: sed -n -E s/ (85| 5)$//p [2024-12-04 21:37:18] Executing: ls -r -- /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 [2024-12-04 21:37:18] Executing: wipefs -a -- /dev/sda4 /dev/sda3 /dev/sda2 /dev/sda1 [2024-12-04 21:37:18] Formatting ESP... [2024-12-04 21:37:18] Executing: mkfs.fat -F32 -f2 -n ESP -- /dev/sda1 [2024-12-04 21:37:18] Formatting SWAP... [2024-12-04 21:37:18] Executing: mkswap -L SWAP -- /dev/sda2 [2024-12-04 21:37:18] Executing: blkid -c /dev/null -o value -s UUID -- /dev/sda2 [2024-12-04 21:37:18] Formatting ROOT... [2024-12-04 21:37:18] Executing: mkfs.ext4 -q -j -L ROOT -- /dev/sda3 [2024-12-04 21:37:18] Executing: blkid -c /dev/null -o value -s UUID -- /dev/sda3 [2024-12-04 21:37:18] Formatting DATA... [2024-12-04 21:37:18] Executing: mkfs.ext4 -q -j -L DATA -- /dev/sda4 [2024-12-04 21:37:18] Restoring / (root) partition... [2024-12-04 21:37:18] Executing: mkdir -p -m 0755 -- /mnt/target [2024-12-04 21:37:18] Executing: mount -t ext4 -o relatime -- /dev/sda3 /mnt/target [2024-12-04 21:37:18] Executing: rm -f -- /root/tmp/system-restore-yGSfiO9C.tmp/ERROR [2024-12-04 21:37:18] Executing: mktemp -qt [2024-12-04 21:37:18] Executing: rm -f -- /root/tmp/tmp.wQSGqYewL2 [2024-12-04 21:37:18] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.wQSGqYewL2 --url http://ftp.altlinux.org/pub/people/klark/deploy/example/root.tgz [2024-12-04 21:37:18] /root/tmp/tmp.wQSGqYewL2 contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:37:19 GMT Content-Type: application/x-gzip Content-Length: 496751502 Last-Modified: Wed, 04 Dec 2024 17:36:39 GMT Connection: keep-alive ETag: "67509327-1d9bd38e" Accept-Ranges: bytes ######################################## [2024-12-04 21:37:18] curl status: 0, protocol status: 200 [2024-12-04 21:37:18] Executing: rm -f -- /root/tmp/tmp.wQSGqYewL2 [2024-12-04 21:37:18] root.tgz (496751502 bytes) will be unpacked [2024-12-04 21:37:18] Executing: tar -xpSf - --overwrite -C /mnt/target [2024-12-04 21:38:34] Restoring /boot/efi (ESP) partition... [2024-12-04 21:38:34] Executing: mount -t vfat -o umask=0,quiet,showexec,iocharset=utf8,codepage=866 -- /dev/sda1 /mnt/target/boot/efi [2024-12-04 21:38:34] Executing: mktemp -qt [2024-12-04 21:38:34] Executing: rm -f -- /root/tmp/tmp.pAQeaPtXtc [2024-12-04 21:38:34] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.pAQeaPtXtc --url http://ftp.altlinux.org/pub/people/klark/deploy/example/esp.tgz [2024-12-04 21:38:34] /root/tmp/tmp.pAQeaPtXtc contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:38:35 GMT Content-Type: application/x-gzip Content-Length: 1294176 Last-Modified: Wed, 04 Dec 2024 17:36:40 GMT Connection: keep-alive ETag: "67509328-13bf60" Accept-Ranges: bytes ######################################## [2024-12-04 21:38:35] curl status: 0, protocol status: 200 [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.pAQeaPtXtc [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/system-restore-yGSfiO9C.tmp/ERROR [2024-12-04 21:38:35] Executing: mktemp -qt [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.C5zXNR5Q8k [2024-12-04 21:38:35] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.C5zXNR5Q8k --url http://ftp.altlinux.org/pub/people/klark/deploy/example/esp.tgz [2024-12-04 21:38:35] /root/tmp/tmp.C5zXNR5Q8k contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:38:35 GMT Content-Type: application/x-gzip Content-Length: 1294176 Last-Modified: Wed, 04 Dec 2024 17:36:40 GMT Connection: keep-alive ETag: "67509328-13bf60" Accept-Ranges: bytes ######################################## [2024-12-04 21:38:35] curl status: 0, protocol status: 200 [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.C5zXNR5Q8k [2024-12-04 21:38:35] esp.tgz (1294176 bytes) will be unpacked [2024-12-04 21:38:35] Executing: tar -xpSf - --overwrite -C /mnt/target/boot/efi [2024-12-04 21:38:35] Executing: mkdir -p -m 0755 -- /mnt/target/boot/efi/EFI [2024-12-04 21:38:35] Restoring /home (user data) partition... [2024-12-04 21:38:35] Executing: mkdir -p -m 0700 -- /mnt/target/home [2024-12-04 21:38:35] Executing: mount -t ext4 -o nosuid,relatime -- /dev/sda4 /mnt/target/home [2024-12-04 21:38:35] Executing: mktemp -qt [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.c1NRx1g0pk [2024-12-04 21:38:35] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.c1NRx1g0pk --url http://ftp.altlinux.org/pub/people/klark/deploy/example/home.tgz [2024-12-04 21:38:35] /root/tmp/tmp.c1NRx1g0pk contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:38:35 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:38:35] curl status: 0, protocol status: 404 [2024-12-04 21:38:35] unrecoverable http error: 404 [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.c1NRx1g0pk [2024-12-04 21:38:35] Executing: mktemp -qt [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.Rio4r6fgy7 [2024-12-04 21:38:35] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.Rio4r6fgy7 --url http://ftp.altlinux.org/pub/people/klark/deploy/example/var.tgz [2024-12-04 21:38:35] /root/tmp/tmp.Rio4r6fgy7 contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:38:35 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:38:35] curl status: 0, protocol status: 404 [2024-12-04 21:38:35] unrecoverable http error: 404 [2024-12-04 21:38:35] Executing: rm -f -- /root/tmp/tmp.Rio4r6fgy7 [2024-12-04 21:38:35] Personification... [2024-12-04 21:38:35] Executing: dbus-uuidgen [2024-12-04 21:38:35] Executing: cp -Lf -- /mnt/target/etc/machine-id /mnt/target/var/lib/dbus/machine-id [2024-12-04 21:38:35] Executing: sed -i s,computername,animal-123456, /mnt/target/etc/sysconfig/network [2024-12-04 21:38:35] Executing: head -n1 -- /root/tmp/system-restore-yGSfiO9C.tmp/RNDSEED [2024-12-04 21:38:35] Executing: head -c512 -- /dev/urandom [2024-12-04 21:38:35] Executing: chmod -- 0600 /mnt/target/var/lib/systemd/random-seed [2024-12-04 21:38:35] Entering hook 'mkfstab_top'... [2024-12-04 21:38:35] Leaving hook 'mkfstab_top'... [2024-12-04 21:38:35] Entering hook 'mkfstab_entry'... [2024-12-04 21:38:35] Executing: blkid -c /dev/null -o value -s UUID -- /dev/sda3 [2024-12-04 21:38:35] Leaving hook 'mkfstab_entry'... [2024-12-04 21:38:35] Entering hook 'mkfstab_entry'... [2024-12-04 21:38:35] Executing: blkid -c /dev/null -o value -s UUID -- /dev/sda1 [2024-12-04 21:38:35] Leaving hook 'mkfstab_entry'... [2024-12-04 21:38:35] Entering hook 'mkfstab_entry'... [2024-12-04 21:38:35] Executing: blkid -c /dev/null -o value -s UUID -- /dev/sda4 [2024-12-04 21:38:35] Leaving hook 'mkfstab_entry'... [2024-12-04 21:38:35] Entering hook 'mkfstab_entry'... [2024-12-04 21:38:35] Leaving hook 'mkfstab_entry'... [2024-12-04 21:38:35] Entering hook 'mkfstab_bottom'... [2024-12-04 21:38:35] Leaving hook 'mkfstab_bottom'... [2024-12-04 21:38:35] Executing: chmod -- 0644 /mnt/target/etc/fstab [2024-12-04 21:38:35] /mnt/target/etc/fstab contents: ######################################## proc /proc proc nosuid,noexec,gid=proc 0 0 devpts /dev/pts devpts nosuid,noexec,gid=tty,mode=620,ptmxmode=0666 0 0 tmpfs /tmp tmpfs nosuid 0 0 UUID=4617c0b2-fef9-4f55-af82-af9436e897ac / ext4 relatime 1 1 UUID=B8E2-3832 /boot/efi vfat umask=0,quiet,showexec,iocharset=utf8,codepage=866 1 2 UUID=8ddbd1ed-ece1-42dd-b155-79e94dfc42a8 /home ext4 nosuid,relatime 1 2 UUID=4bc5cd99-6d6f-4a30-9d20-963e1a685317 swap swap defaults 0 0 ######################################## [2024-12-04 21:38:35] Executing: chmod -- 0644 /mnt/target/boot/efi/EFI/altlinux/grub.cfg [2024-12-04 21:38:35] /mnt/target/boot/efi/EFI/altlinux/grub.cfg contents: ######################################## search.fs_uuid 4617c0b2-fef9-4f55-af82-af9436e897ac root set prefix=($root)'/boot/grub' configfile $prefix/grub.cfg ######################################## [2024-12-04 21:38:35] Executing: sed -i -E s|^GRUB_CMDLINE_LINUX_DEFAULT=.*$|GRUB_CMDLINE_LINUX_DEFAULT='resume=UUID=4bc5cd99-6d6f-4a30-9d20-963e1a685317 panic=30 quiet loglevel=3 '| /mnt/target/etc/sysconfig/grub2 [2024-12-04 21:38:35] Executing: mountpoint -x -- /dev/sda [2024-12-04 21:38:35] Executing: grep -s S:disk/by-id/ /run/udev/data/b8:0 [2024-12-04 21:38:36] Executing: sed -i -E s|^#?GRUB_AUTOUPDATE_DEVICE=.*$|GRUB_AUTOUPDATE_DEVICE='/dev/disk/by-id/scsi-0ATA_QEMU_HARDDISK_QM00013 '| /mnt/target/etc/sysconfig/grub2 [2024-12-04 21:38:36] Executing: chmod -- 0644 /mnt/target/etc/sysconfig/grub2 [2024-12-04 21:38:36] /mnt/target/etc/sysconfig/grub2 contents: ######################################## # Automaticaly update grub on device(s) # NB: don't put /dev/mdX there but rather '/dev/sda /dev/sdb '! GRUB_AUTOUPDATE_DEVICE='/dev/disk/by-id/scsi-0ATA_QEMU_HARDDISK_QM00013 ' # Use '--force' option for grub-install #GRUB_AUTOUPDATE_FORCE='no' # Automaticaly update config file on kernel install/removal # default: true GRUB_AUTOUPDATE_CFG=true # Automaticaly updated config filename # default: /boot/grub/grub.cfg GRUB_AUTOUPDATE_CFGNAME=/boot/grub/grub.cfg # Kernel for the top-level boot entry # default: /boot/vmlinuz GRUB_TOP_LEVEL=/boot/vmlinuz # How to handle /boot/vmlinuz* symlinks: # 'yes','true' - include in config # 'no','false' - skip in config # 'vmlinuz' - include only /boot/vmlinuz in config # default: yes GRUB_VMLINUZ_SYMLINKS=yes # Whether to add failsafe entries: # 'yes','true' - add for all kernels # 'no','false' - skip for all kernels # 'default' - add failsafe entry only for /boot/vmlinuz # default: default GRUB_VMLINUZ_FAILSAFE=default # Preload specific grub modules #GRUB_PRELOAD_MODULES='' # Set normal timeout GRUB_TIMEOUT=1 # Set hidden timeout (do not show menu) #GRUB_HIDDEN_TIMEOUT=3 # Show timeout counter when hidden #GRUB_HIDDEN_TIMEOUT_QUIET=TRUE GRUB_CMDLINE_LINUX_DEFAULT='resume=UUID=4bc5cd99-6d6f-4a30-9d20-963e1a685317 panic=30 quiet loglevel=3 ' GRUB_CMDLINE_LINUX='failsafe vga=normal' GRUB_TERMINAL_OUTPUT='gfxterm' GRUB_GFXMODE='auto' GRUB_DEFAULT='saved' GRUB_SAVEDEFAULT=true GRUB_BACKGROUND="/etc/bootsplash/themes/current/images/silent-800x600.jpg" # GRUB_WALLPAPER is a deprecated parameter not supported by upstream # It's support in OS ALT is not guaranteed in future releases -- # use GRUB_BACKGROUND instead for branding development GRUB_WALLPAPER="/etc/bootsplash/themes/current/images/silent-800x600.jpg" GRUB_COLOR_NORMAL="black/black" GRUB_COLOR_HIGHLIGHT="white/black" # This is especially important as EFI Boot Manager label GRUB_DISTRIBUTOR="ALT Linux" # This defines /boot/efi/EFI subdir name GRUB_BOOTLOADER_ID="altlinux" ######################################## [2024-12-04 21:38:36] Executing: mv -f -- /mnt/target/etc/net/ifaces/eth0 /mnt/target/etc/net/ifaces/enp0s4 [2024-12-04 21:38:36] /mnt/target/etc/net/ifaces/enp0s4/options contents: ######################################## BOOTPROTO=dhcp TYPE=eth ######################################## [2024-12-04 21:38:36] Executing: mkdir -p -m 0755 -- /mnt/target/tmp/DEPLOY [2024-12-04 21:38:36] Executing: mount --bind -- /var/log/system-restore.log /mnt/target/tmp/DEPLOY/system-restore.log [2024-12-04 21:38:36] Executing: mktemp -qt [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.zh4dyTjMFy [2024-12-04 21:38:36] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.zh4dyTjMFy --url http://ftp.altlinux.org/pub/people/klark/deploy/example/update.tgz [2024-12-04 21:38:36] /root/tmp/tmp.zh4dyTjMFy contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:38:36 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:38:36] curl status: 0, protocol status: 404 [2024-12-04 21:38:36] unrecoverable http error: 404 [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.zh4dyTjMFy [2024-12-04 21:38:36] Executing: mktemp -qt [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.VL81arPi7Z [2024-12-04 21:38:36] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.VL81arPi7Z --url http://ftp.altlinux.org/pub/people/klark/deploy/example/sysrest.ini [2024-12-04 21:38:36] /root/tmp/tmp.VL81arPi7Z contents: ######################################## HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2024 21:38:36 GMT Content-Type: application/octet-stream Content-Length: 15504 Last-Modified: Wed, 04 Dec 2024 17:33:39 GMT Connection: keep-alive ETag: "67509273-3c90" Accept-Ranges: bytes ######################################## [2024-12-04 21:38:36] curl status: 0, protocol status: 200 [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.VL81arPi7Z [2024-12-04 21:38:36] Executing: cp -Lf -- /root/tmp/tmp.pZf6Ijsi8D/sysrest/restore/defaults.sh /mnt/target/tmp/DEPLOY/ [2024-12-04 21:38:36] Executing: cp -Lf -- /root/tmp/tmp.pZf6Ijsi8D/sysrest/restore/internal.sh /mnt/target/tmp/DEPLOY/ [2024-12-04 21:38:36] Executing: cp -Lf -- /root/tmp/tmp.pZf6Ijsi8D/sysrest/restore/chroot.sh /mnt/target/tmp/DEPLOY/ [2024-12-04 21:38:36] Executing: cp -Lf -- /root/tmp/tmp.pZf6Ijsi8D/sysrest/common.sh /mnt/target/tmp/DEPLOY/ [2024-12-04 21:38:36] Executing: cp -Lf -- /root/tmp/tmp.pZf6Ijsi8D/sysrest/logger.sh /mnt/target/tmp/DEPLOY/ [2024-12-04 21:38:36] Executing: chmod -- 0755 /mnt/target/tmp/DEPLOY/chroot.sh [2024-12-04 21:38:36] Executing: mktemp -qt [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.LRIvQTlCpq [2024-12-04 21:38:36] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.LRIvQTlCpq --url http://ftp.altlinux.org/pub/people/klark/deploy/example/chroot-pre.sh [2024-12-04 21:38:36] /root/tmp/tmp.LRIvQTlCpq contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:38:36 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:38:36] curl status: 0, protocol status: 404 [2024-12-04 21:38:36] unrecoverable http error: 404 [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.LRIvQTlCpq [2024-12-04 21:38:36] Executing: mktemp -qt [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.oy0L0P1hnE [2024-12-04 21:38:36] Executing: curl -sI --no-buffer --connect-timeout 5 --max-time 7 --max-redirs 2 --write-out %{http_code} --output /root/tmp/tmp.oy0L0P1hnE --url http://ftp.altlinux.org/pub/people/klark/deploy/example/chroot-post.sh [2024-12-04 21:38:36] /root/tmp/tmp.oy0L0P1hnE contents: ######################################## HTTP/1.1 404 Not Found Server: nginx Date: Wed, 04 Dec 2024 21:38:36 GMT Content-Type: text/html Content-Length: 146 Connection: keep-alive ######################################## [2024-12-04 21:38:36] curl status: 0, protocol status: 404 [2024-12-04 21:38:36] unrecoverable http error: 404 [2024-12-04 21:38:36] Executing: rm -f -- /root/tmp/tmp.oy0L0P1hnE [2024-12-04 21:38:36] /mnt/target/tmp/DEPLOY/chroot.ini contents: ######################################## HAVE_ESP=1 HAVE_BIOS=1 HAVE_PReP= quiet="" verbose="" SYSREST_DEBUG=1 frontend_pipe="" alterator= logfile="/tmp/DEPLOY/system-restore.log" logprio="user.info" progname="system-restore" target="/dev/sda" action="deploy" ######################################## [2024-12-04 21:38:36] Entering hook 'before_chroot'... [2024-12-04 21:38:36] Leaving hook 'before_chroot'... [2024-12-04 21:38:36] Executing: mountpoint -q /sys/firmware/efi/efivars [2024-12-04 21:38:36] Executing: efibootmgr -q -D [2024-12-04 21:38:36] Executing: efibootmgr -q -N Could not delete BootNext: No such file or directory [2024-12-04 21:38:36] Executing: efibootmgr [2024-12-04 21:38:36] Executing: grep -i -E ^Boot[0-9A-F][0-9A-F][0-9A-F][0-9A-F] [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0000 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0001 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0002 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0003 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0004 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0005 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0006 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0007 [2024-12-04 21:38:36] Executing: efibootmgr -q -B -b 0008 [2024-12-04 21:38:36] Executing: efibootmgr -q -O [2024-12-04 21:38:36] Executing: mount --bind -- /dev /mnt/target/dev [2024-12-04 21:38:36] Executing: env -i PATH=/sbin:/usr/sbin:/bin:/usr/bin TERM=linux USER=root LANG=C LC_ALL=C TMPDIR=/tmp/DEPLOY chroot /mnt/target /tmp/DEPLOY/chroot.sh [2024-12-04 21:38:36] Mounting pseudo fs... [2024-12-04 21:38:36] Executing: mount -t proc -- none /proc [2024-12-04 21:38:36] Executing: mount -t sysfs -- none /sys [2024-12-04 21:38:36] Executing: mount -t devpts -- none /dev/pts [2024-12-04 21:38:36] Executing: ls -1 /lib/modules/ [2024-12-04 21:38:36] Executing: make-initrd --kernel=6.6.58-un-def-alt1 [00:00:01] Config file: /etc/initrd.mk [00:00:01] Generating module dependencies on host ... [00:00:11] Used features: add-modules add-udev-rules cleanup compress depmod-image qemu rdshell rootfs system-glibc [00:00:11] Packed modules: 8139cp 8390 9pnet 9pnet_virtio ahci ata_generic ata_piix bluetooth cdrom crypto_engine e100 e1000 e1000e ecdh_generic evdev failover fuse gpio-virtio hid hid-generic i2c-virtio input-leds libahci libata libnvdimm mii nd_virtio ne2k-pci net_failover pata_acpi pcnet32 rfkill rng-core rpmsg_core rpmsg_ns scsi_common scsi_mod sd_mod serio_raw snd snd-pcm snd-timer soundcore sr_mod vdpa virtio virtio-iommu virtio-rng virtio_balloon virtio_blk virtio_bt virtio_console virtio_crypto virtio_dma_buf virtio_input virtio_mem virtio_mmio virtio_net virtio_pci virtio_pci_legacy_dev virtio_pci_modern_dev virtio_pmem virtio_ring virtio_rpmsg_bus virtio_scsi virtio_snd virtio_vdpa virtiofs vmw_vsock_virtio_transport vmw_vsock_virtio_transport_common vp_vdpa vsock [00:00:11] Unpacked size: 30M [00:00:12] Image size: 9.6M [00:00:12] Image is saved as /boot/initrd-6.6.58-un-def-alt1.img [2024-12-04 21:38:48] Installing grub-pc for Legacy/CSM boot mode... [2024-12-04 21:38:48] Executing: grub-install --target=i386-pc --recheck --boot-directory=/boot -- /dev/sda Installing for i386-pc platform. Installation finished. No error reported. [2024-12-04 21:38:48] The grub-efi bootloader for x86_64 is already installed! [2024-12-04 21:38:48] Executing: update-grub Generating grub configuration file ... Found linux image: /boot/vmlinuz Found initrd image: /boot/initrd.img Found linux image: /boot/vmlinuz-un-def Found initrd image: /boot/initrd-un-def.img Found linux image: /boot/vmlinuz-6.6.58-un-def-alt1 Found initrd image: /boot/initrd-6.6.58-un-def-alt1.img Adding boot menu entry for UEFI Firmware Settings ... done [2024-12-04 21:38:50] Executing: find /etc/openssh -maxdepth 1 -type f -name ssh_host_*_key.pub -or -name ssh_host_*_key -delete [2024-12-04 21:38:50] Executing: ssh-keygen -A [2024-12-04 21:38:50] Unmounting pseudo fs... [2024-12-04 21:38:50] Executing: umount -- /dev/pts [2024-12-04 21:38:50] Executing: umount -- /sys [2024-12-04 21:38:50] Executing: umount -- /proc [2024-12-04 21:38:50] Executing: umount -- /mnt/target/dev [2024-12-04 21:38:50] Executing: umount -- /mnt/target/tmp/DEPLOY/system-restore.log [2024-12-04 21:38:50] Executing: rm -rf --one-file-system -- /mnt/target/tmp/DEPLOY [2024-12-04 21:38:50] Executing: cp -aRf -- /mnt/target/boot/efi/EFI/altlinux /mnt/target/boot/efi/EFI/BOOT [2024-12-04 21:38:50] Executing: mv -f -- /mnt/target/boot/efi/EFI/BOOT/shimx64.efi /mnt/target/boot/efi/EFI/BOOT/BOOTX64.EFI [2024-12-04 21:38:50] Entering hook 'after_chroot'... [2024-12-04 21:38:50] Leaving hook 'after_chroot'... [2024-12-04 21:38:50] Adding a boot record to NVRAM... [2024-12-04 21:38:50] Executing: efibootmgr -q -c -d /dev/sda -t 0 -L altlinux -l \EFI\ALTLINUX\SHIMX64.EFI [2024-12-04 21:38:50] Executing: efibootmgr [2024-12-04 21:38:50] Executing: grep -qws -- altlinux [2024-12-04 21:38:51] Executing: mountpoint -q /tmp [2024-12-04 21:38:51] Executing: chmod -- 0755 /tmp/finish.sh [2024-12-04 21:38:51] Executing: efibootmgr [2024-12-04 21:38:51] Executing: lsblk -f -- /dev/sda [2024-12-04 21:38:51] Executing: sfdisk -l -- /dev/sda