/usr/share/dell/grub/build-factory.sh is in dell-recovery 1.48.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh -e
#Dell factory GRUB2 builder
# TARGET specifies where the binaries will end up
# SOURCE_GRUBDIR is where the conf files used are stored
# TARGET_GRUBCFG is where the main grubcfg will be placed after modification
[ -n "$TARGET" ] || TARGET=/var/lib/dell-recovery
[ -n "$SOURCE_GRUBDIR" ] || SOURCE_GRUBDIR=/usr/share/dell/grub
[ -n "$TARGET_GRUBCFG" ] || TARGET_GRUBCFG=$TARGET/grub.cfg
echo "Creating factory grub.cfg"
OS=$(lsb_release -s -d)
sed "s,#OS#,$OS,; /#UUID#/d" \
$SOURCE_GRUBDIR/recovery_partition.cfg \
> $TARGET_GRUBCFG
|