Re: Removing fdisk and bsdlabel (legacy partition tools)
- In reply to: Freddie Cash : "Re: Removing fdisk and bsdlabel (legacy partition tools)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jan 2024 22:17:38 UTC
add variation of this to stock image to get better rescue media. maybe installer could even be updated a bit. if that is really big issue. cons is that this requires network to be present. but where to get packages from anyway without it, perhaps dvd1. i actually find it confusing that highly technically skilled people who clearly run non-standard hw of various archs and with several oses, for work or hobby, argue how installer sucks. you can patch it. then you can use it locally or submit it to fbsd. i don't know, maybe i'll do it then? --- cut --- #!/bin/sh -Cefu set -Cefu kbdcontrol -r fast -l ee test -d /tmp/unionfs/etc || mkdir -p /tmp/unionfs/etc mount -t unionfs | fgrep -q /etc || mount_unionfs /tmp/unionfs/etc /etc test -d /tmp/unionfs/root || mkdir -p /tmp/unionfs/root mount -t unionfs | fgrep -q /root || mount_unionfs /tmp/unionfs/root /root test -f /etc/wall_cmos_clock || touch /etc/wall_cmos_clock test -f /etc/localtime || tzsetup Europe/Tallinn pgrep -q adjkerntz || service adjkerntz start ifconfig -a -G lo | grep '^[a-z0-9]' | cut -d : -f 1 | xargs -n 1 sh -c \ 'echo ; service dhclient status "$0" || service dhclient forcestart "$0"' test -f /tmp/ntpdate_run_done \ || ( echo ; ntpdate dome && touch /tmp/ntpdate_run_done ) echo service ntpd onestatus || service ntpd onestart echo test -f /tmp/ntpdate_run_done && ntpdate -q dome echo date echo test -f /boot/kernel/coretemp.ko && kldload -n coretemp test -f /boot/kernel/amdtemp.ko && kldload -n amdtemp sysctl -a | grep '[0-9]C$' | egrep -v '(_(CRT|PSV)|\.tjmax)' sysctl -a | fgrep -q battery \ && ( echo ; acpiconf -i 0 | grep -v ':[[:space:]]*$') echo --- cut --- On 26 January 2024 22:11:44 EET, Freddie Cash <fjwcash@gmail.com> wrote: >Sounds like a custom mfsBSD or Frenzy CD/USB would be better suited to >these bare-metal rescue setups. Something that has the specific tools you >need already installed. I know I've kept various versions of these CD >images around for just this purpose. I always found them nicer to use than >the FreeBSD install CDs in rescue mode, as there's a fully-functional >FreeBSD install to work from, including the ability to install packages >temporarily. >