Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/script
Context not available. | |||||
# Unpack distributions | # Unpack distributions | ||||
bsdinstall checksum | bsdinstall checksum | ||||
for set in $DISTRIBUTIONS; do | if [ -t 0 ]; then | ||||
f_dprintf "Extracting $BSDINSTALL_DISTDIR/$set" | # If install is a tty, use distextract as normal | ||||
# XXX: this will fail if any mountpoints are FAT, due to inability to | bsdinstall distextract | ||||
# set ctime/mtime on the root of FAT partitions. tar has no option to | else | ||||
# ignore this. We probably need to switch back to distextract here | # If not, it's much more useful to have tar into the log file | ||||
rpokala: I'm having trouble parsing that comment... | |||||
# to properly support EFI. | for set in $DISTRIBUTIONS; do | ||||
tar -xf "$BSDINSTALL_DISTDIR/$set" -C $BSDINSTALL_CHROOT | f_dprintf "Extracting $BSDINSTALL_DISTDIR/$set" | ||||
done | # XXX: The below fails if any mountpoints are FAT, due to | ||||
# inability to set ctime/mtime on the root of FAT partitions, | |||||
# which is needed to support e.g. EFI system partitions. tar has | |||||
Done Inline ActionsWas this supposed to be two separate lines? gjb: Was this supposed to be two separate lines? | |||||
# no option to ignore this (distextract ignores them internally | |||||
# through a hack), and returns 1 on any warning or error, | |||||
# effectively turning all warnings into fatal errors. | |||||
# | |||||
# Work around this in an extremely lame way for the specific | |||||
# case of EFI system partitions only. This *ONLY WORKS* if | |||||
# /boot/efi is empty and does not handle analagous problems on | |||||
# other systems (ARM, PPC64). | |||||
tar -xf "$BSDINSTALL_DISTDIR/$set" -C $BSDINSTALL_CHROOT --exclude boot/efi | |||||
mkdir -p $BSDINSTALL_CHROOT/boot/efi | |||||
done | |||||
fi | |||||
# Configure bootloader if needed | # Configure bootloader if needed | ||||
bsdinstall bootconfig | bsdinstall bootconfig | ||||
Context not available. |
I'm having trouble parsing that comment...