sysresccd-custom script error

Post questions about how to make a customized SystemRescueCd, and if you have problems to install new packages. Please read the handbook first.
fx999
Posts: 1
Joined: 17 Nov 2013, 18:21

sysresccd-custom script error

Postby fx999 » 17 Nov 2013, 18:28

Code: Select all

[email protected] /usr/bin % sysresccd-custom squashfs
/mnt/custom is mounted -> ok
/usr/sbin/sysresccd-custom: line 95: [: -gt: unary operator expected
/usr/sbin/sysresccd-custom: not enough room in /mnt/custom
You only have  MB free, and the script needs at least 400 MB free
Please, read the manual for more help about this script
Web: http://www.sysresccd.org
[email protected] /usr/bin %


I get this error when I create a the squash fs. That's because I mount /mnt /custom in this way

Code: Select all

mount /dev/sda4 /mydisk
mount --bind /mydisk/path/to/sysrescbuild /mnt/custom


So I would like it if you change line 95 on /usr/sbin/sysresccd-custom from

Code: Select all

SIZE=`(\df -m -P /mnt/custom) | grep '/mnt/custom$' | tail -n 1 | awk '{print $4}'`

to this:

Code: Select all

SIZE=`(\df -m -P /mnt/custom) | tail -n 1 | awk '{print $4}'`


This should work for either case.

Return to “Customization and installing new packages”

Who is online

Users browsing this forum: No registered users and 1 guest