Skip to content

If /boot partition is too small it should exit immediately or give me bigger warning #913

@blaskovic

Description

@blaskovic
  • rear version (/usr/sbin/rear -V):
    • Relax-and-Recover 1.17.2 / Git
  • OS version (cat /etc/rear/os.conf or lsb_release -a):
# cat /etc/rear/os.conf
OS_VENDOR=RedHatEnterpriseServer
OS_VERSION=7
  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf):
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=file:///mnt/external-drive
GRUB_RESCUE=1
  • Brief description of the issue
    • In case my /boot partition is too small to write iso file here, it just put a small warning, that it is not big enough. So if I run this in cron, I don't know if something went wrong and there is no ISO image in /boot.
    • Then if I want to recover totally broken system, I can't because it does not contain recovery image
  • Work-around, if any
    • I don't know it it exists - maybe I can resize /boot before
# rear -v mkbackup
Relax-and-Recover 1.17.2 / Git
Using log file: /var/log/rear/rear-qeos-149.log
mkdir: created directory '/var/lib/rear/output'
Creating disk layout
Excluding component fs:/mnt/rear-trash
Creating root filesystem layout
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
Making ISO image
Wrote ISO image: /var/lib/rear/output/rear-qeos-149.iso (121M)
WARNING: Not enough disk space available in /boot for GRUB2 rescue image
           Required: 118 MiB / Available: 52 MiB
Copying resulting files to file location
Encrypting disabled
Creating tar archive '/mnt/rear-trash/heyhere/qeos-149/backup.tar.gz'
Archived 814 MiB [avg 3863 KiB/sec]OK
Archived 814 MiB in 217 seconds [avg 3845 KiB/sec]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions