friendly-recovery-0.2.31ubuntu2/0000755000000000000000000000000012533061024013454 5ustar friendly-recovery-0.2.31ubuntu2/lib/0000755000000000000000000000000013354736100014230 5ustar friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/0000755000000000000000000000000013354736100017010 5ustar friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/recovery-menu0000755000000000000000000000672013354736100021543 0ustar #!/bin/bash if [ ! -x "$(which whiptail)" ]; then echo "Couldn't find whiptail, starting root shell instead of recovery menu." sulogin clear exit fi systemd-notify --ready || : # include gettext stuff . /lib/recovery-mode/l10n.sh # main READONLY=true while true; do unset items if [ "$READONLY" = "true" ]; then menu_text=$(eval_gettext "Recovery Menu (filesystem state: read-only)") else menu_text=$(eval_gettext "Recovery Menu (filesystem state: read/write)") fi items[c++]="resume" items[c++]=$(eval_gettext " Resume normal boot") for i in /lib/recovery-mode/options/*; do if [ -x "$i" ]; then name="`"$i" test`" if [ $? -eq 0 ]; then items[c++]="${i##*/}" items[c++]=" $name" fi fi done choice="$(whiptail --nocancel --menu "$menu_text" 18 70 10 \ "${items[@]}" \ 3>&1 1>&2 2>&3 3>&-)" if [ -z "$choice" ]; then continue fi if [ "$choice" = "resume" ]; then box_text=$(eval_gettext "You are now going to exit the recovery mode and continue the boot sequence. Please note that some graphic drivers require a full graphical boot and so will fail when resuming from recovery. If that's the case, simply reboot from the login screen and then perform a standard boot.") whiptail --msgbox "$box_text" 12 70 clear touch /run/friendly_recovery.resume systemctl daemon-reload systemctl --no-block isolate default.target exit fi /lib/recovery-mode/options/$choice test mode >/dev/null 2>&1 retval=$? # Hack for the fsck case (needs to be cosidered read/write only when # in read-only mode and read-only only when in read/write mode) if [ "$choice" = "fsck" ] && [ "$READONLY" = "false" ]; then retval=1 fi case "$retval" in 0) # 0 => requires read/write if [ "$READONLY" = "true" ]; then box_text=$(eval_gettext "Continuing will remount your / filesystem in read/write mode and mount any other filesystem defined in /etc/fstab. Do you wish to continue?") whiptail --yesno "$box_text" 10 70 || continue if [ "$choice" = "fsck" ]; then FSCHECK="true" fi . /etc/default/rcS if [ -d /run/systemd/system ]; then [ "$FSCKFIX" = "yes" ] && fsck_mode="-y" || fsck_mode='-a' [ "$FSCHECK" = "true" ] || [ -f /forcefsck ] && fsck $fsck_mode systemctl start --job-mode=ignore-dependencies systemd-remount-fs.service mount -a else [ "$FSCHECK" = "true" ] || [ -f /forcefsck ] && force_fsck="--force-fsck" [ "$FSCKFIX" = "yes" ] && fsck_fix="--fsck-fix" mountall $force_fsck $fsck_fix --no-events fi rm -f /forcefsck if [ "$choice" = "fsck" ]; then echo "" echo $(eval_gettext "Finished, please press ENTER") read TMP fi READONLY=false fi ;; 1) # 1 => read-only only if [ "$READONLY" = "false" ]; then box_text=$(eval_gettext "The option you selected requires your filesystem to be in read-only mode. Unfortunately another option you selected earlier, made you exit this mode. The easiest way of getting back in read-only mode is to reboot your system.") whiptail --msgbox "$box_text" 12 70 continue fi ;; 2) # 2 => works in all cases # nothing to do ;; esac export READONLY /lib/recovery-mode/options/$choice done friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/0000755000000000000000000000000013354736100020503 5ustar friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/dpkg0000755000000000000000000000134412533055773021370 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then echo $(eval_gettext "Repair broken packages") exit 0 fi # do some cleanup rm -f /var/lib/apt/lists/partial/* rm -f /var/cache/apt/archives/partial/* # check and use dist-upgraders partial mode if we have it, # it contains a lot of useful repair code script=/usr/lib/python3/dist-packages/DistUpgrade/dist-upgrade.py if [ -e $script ]; then env RELEASE_UPGRADER_NO_SCREEN=1 python3 "$script" --partial --frontend DistUpgradeViewText \ --datadir /usr/share/ubuntu-release-upgrader else dpkg --configure -a apt-get update apt-get install -f apt-get dist-upgrade fi echo "" echo $(eval_gettext "Finished, please press ENTER") read TMP exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/system-summary0000755000000000000000000000561212533055773023464 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then if [ "$2" = "mode" ]; then exit 2 fi echo $(eval_gettext "System summary") exit 0 fi # Get FS state if [ "$READONLY" = "true" ]; then fs_state=$(eval_gettext 'Read-only mode') else fs_state=$(eval_gettext 'Read/Write mode') fi # Check for existing connectivity net_state=$(eval_gettext 'none') ip route get 1.2.3.4 >/dev/null 2>&1 && net_state=$(eval_gettext 'IP configured') && grep ^nameserver -q /etc/resolv.conf && net_state=$(eval_gettext 'IP and DNS configured') # Get CPU information cpu_count=$(ls -1 /sys/devices/system/cpu/ | grep "^cpu[0-9]*$" | wc -l) cpu_freq=$(($(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies | cut -d' ' -f1) / 1000)) cpu_info="${cpu_count}x${cpu_freq}MHz" # Get RAID information if [ -n "$(grep md /proc/mdstat)" ]; then raid_state=$(cat /proc/mdstat | grep -v Personalities) else raid_state=$(eval_gettext 'No software RAID detected (mdstat)') fi # LVM if [ -z "$(which vgscan)" ] then lvm_state=$(eval_gettext 'No LVM detected (vgscan)') else if [ "$(id -u)" -ne 0 ] then lvm_state=$(eval_gettext 'Unknown (must be run as root)') else lvm_state="$(eval_gettext 'Physical Volumes:')" pvck >/dev/null 2>&1 if [ $? -eq 0 ]; then lvm_state="$lvm_state $(eval_gettext 'ok (good)')" else lvm_state="$lvm_state $(eval_gettext 'not ok (BAD)')" fi lvm_state="$lvm_state $(eval_gettext 'Volume Groups:')" vgck >/dev/null 2>&1 if [ $? -eq 0 ]; then lvm_state="$lvm_state $(eval_gettext 'ok (good)')" else lvm_state="$lvm_state $(eval_gettext 'not ok (BAD)')" fi fi fi # Get package system information if [ "$READONLY" = "true" ]; then apt_state=$(eval_gettext 'unknown (read-only filesystem)') elif [ "$(id -u)" -ne 0 ]; then apt_state=$(eval_gettext 'unknown (must be run as root)') else apt-get -qq --no-act check if [ $? -eq 0 ]; then apt_state=$(eval_gettext 'yes (good)') else apt_state=$(eval_gettext 'no (BAD)') fi fi msg="$(eval_gettext '(Use arrows/PageUp/PageDown keys to scroll and TAB key to select)') $(eval_gettext '=== General information ===') $(eval_gettext 'System mode:') $fs_state $(eval_gettext 'CPU information:') $cpu_info $(eval_gettext 'Network connectivity:') $net_state $(eval_gettext '=== Detailed disk usage ===') $(df -h 2>/dev/null) $(eval_gettext '=== Software RAID state ===') $raid_state $(eval_gettext '=== LVM state ===') $lvm_state $(eval_gettext '=== Detailed memory usage ===') $(free -m) $(eval_gettext '=== Detailed network configuration ===') $(ifconfig) $(eval_gettext '=== System database (APT) ===') $(eval_gettext 'Database is consistent:') $apt_state " whiptail --scrolltext --msgbox "$msg" 21 80 --title $(eval_gettext "System summary") exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/failsafeX0000755000000000000000000000042212533055773022341 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh # no failsafe X session if [ ! -e /usr/share/xdiagnose/failsafeXServer ]; then exit 1 fi if [ "$1" = "test" ]; then echo $(eval_gettext "Run in failsafe graphic mode") exit 0 fi /usr/share/xdiagnose/failsafeXServer exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/root0000755000000000000000000000027712533055773021432 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then if [ "$2" = "mode" ]; then exit 2 fi echo $(eval_gettext "Drop to root shell prompt") exit 0 fi /sbin/sulogin friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/apt-snapshots0000755000000000000000000000162212533055773023246 0ustar #!/bin/bash set -e . /lib/recovery-mode/l10n.sh # check if its there if [ ! -x /usr/bin/apt-btrfs-snapshot ]; then exit 1 fi # check if its usable, if list returns a non-zero exit code, # we probably run on a system with no snapshot support if ! /usr/bin/apt-btrfs-snapshot list > /dev/null 2>&1; then exit 1 fi # if we make it to this point, show some help if [ "$1" = "test" ]; then echo $(eval_gettext "Revert to old snapshot and reboot") exit 0 fi # get snapshots and show them in whiptail snapshots=$(apt-btrfs-snapshot list | sed 1d) tag_item="" for item in $snapshots; do tag_item="$item snapshot $tag_item" done choice="$(whiptail --menu "$(eval_gettext "Snapshot")" 15 70 6 $tag_item \ 3>&1 1>&2 2>&3 3>&-)" # user selected cancel if [ -z "$choice" ]; then exit 0 fi # set new snapshot and reboot if apt-btrfs-snapshot set-default "$choice"; then reboot fi friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/clean0000755000000000000000000000053612533055773021527 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then echo $(eval_gettext "Try to make free space") exit 0 fi apt-get clean echo $(eval_gettext "Trying to find packages you don't need (apt-get autoremove), please review carefully.") apt-get autoremove echo "" echo $(eval_gettext "Finished, please press ENTER") read TMP exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/grub0000755000000000000000000000046712533055773021407 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then echo $(eval_gettext "Update grub bootloader") exit 0 fi # FIXME: add this too? how to find out boot device? # add menu to ask? #grub-install update-grub echo "" echo $(eval_gettext "Finished, please press ENTER") read TMP exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/network0000755000000000000000000000336513354736100022131 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then echo $(eval_gettext "Enable networking") exit 0 fi # Check for existing connectivity check_connectivity() { ip route get 1.2.3.4 >/dev/null 2>&1 retval_route=$? grep ^nameserver -q /etc/resolv.conf retval_resolve=$? if [ "$retval_route" = "0" ] && [ "$retval_resolve" ]; then exit 0 fi } # Try handling networking using systemd if [ -d /run/systemd/system ]; then echo "Enabling networking..." for i in dbus.socket systemd-udevd.service systemd-sysctl.service systemd-resolved.service networking.service systemd-networkd.service NetworkManager.service; do systemctl is-enabled -q $i && systemctl start --no-ask-password --job-mode=ignore-dependencies $i done echo "Waiting for networking to be configured..." systemctl is-enabled -q NetworkManager.service && systemctl start --no-ask-password NetworkManager-wait-online.service systemctl is-enabled -q systemd-networkd.service && systemctl start --no-ask-password systemd-networkd-wait-online.service echo "Done." exit 0 fi # Start by trying to bring everything up ifup -a check_connectivity # Then try Network Manager if type NetworkManager >/dev/null 2>&1; then echo "Trying to start NetworkManager..." mkdir -p /run/dbus chown messagebus:messagebus /run/dbus dbus-daemon --system --nopidfile NetworkManager trap "killall dbus-daemon NetworkManager" EXIT HUP INT QUIT PIPE timeout=15 while [ $timeout -ge 0 ]; do check_connectivity sleep 1 timeout=$((timeout-1)) done fi # Try running dhclient on everything else cd /sys/class/net/ for interface in *; do dhclient -1 $interface check_connectivity done exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/options/fsck0000755000000000000000000000026112533055773021366 0ustar #!/bin/sh . /lib/recovery-mode/l10n.sh if [ "$1" = "test" ]; then echo $(eval_gettext "Check all file systems") exit 0 fi # Actual code is in recovery-menu itself exit 0 friendly-recovery-0.2.31ubuntu2/lib/recovery-mode/l10n.sh0000644000000000000000000000214613245607700020123 0ustar # default eval_gettext() to ensure that we do not fail # if gettext-base is not installed eval_gettext() { echo "$1" } # Deal with systems where /usr isn't mounted if [ ! -d /usr/share/locale ]; then return fi # blacklist some languages that we don't have a good console fonts for # see bug #573502 in_lang_blacklist() { LANG_BLACKLIST="ar_ he_IL ja_JP ko_KR ru_RU sl_SI vi_VN zh_" LANG=$1 for b in $LANG_BLACKLIST; do # equal to lang.startswith(b) if expr match "$LANG" ^"$b" >/dev/null ; then export LANG=C.UTF-8 export LANGUAGE=en return 0 fi done return 1 } # There is no environment set, as these steps are skipped, # so we need to source the variables needed for localization ourselves if [ -r /etc/default/locale ]; then . /etc/default/locale if ! in_lang_blacklist "$LANG"; then export LANG LANGUAGE fi elif [ -r /etc/environment ]; then . /etc/environment if ! in_lang_blacklist "$LANG"; then export LANG LANGUAGE fi fi . gettext.sh export TEXTDOMAIN=friendly-recovery export TEXTDOMAINDIR=/usr/share/locale friendly-recovery-0.2.31ubuntu2/lib/systemd/0000755000000000000000000000000013354736100015720 5ustar friendly-recovery-0.2.31ubuntu2/lib/systemd/system-generators/0000755000000000000000000000000013504414770021416 5ustar friendly-recovery-0.2.31ubuntu2/lib/systemd/system-generators/friendly-recovery0000755000000000000000000000043613504414770025017 0ustar #!/bin/sh set -e [ ! -e /run/friendly_recovery.resume ] normaldir=$1 earlydir=$2 latedir=$3 set -- $(cat /proc/cmdline) for cmdline_arg in "$@"; do if [ "$cmdline_arg" = "recovery" ] then ln -sf /lib/systemd/system/friendly-recovery.target $earlydir/default.target break fi done friendly-recovery-0.2.31ubuntu2/lib/systemd/system/0000755000000000000000000000000013354736100017244 5ustar friendly-recovery-0.2.31ubuntu2/lib/systemd/system/friendly-recovery.service0000644000000000000000000000115213354736100024275 0ustar [Unit] Description=Recovery mode menu DefaultDependencies=no Conflicts=shutdown.target Wants=systemd-udevd-control.socket systemd-udevd.service systemd-udev-trigger.service basic.target sysinit.target After=systemd-udevd-control.socket systemd-udevd.service systemd-udev-trigger.service basic.target sysinit.target [Service] Type=notify Environment=HOME=/root WorkingDirectory=/root ExecStartPre=-/bin/dmesg --console-off ExecStartPre=-/bin/plymouth quit ExecStart=-/lib/recovery-mode/recovery-menu StandardInput=tty-force StandardOutput=inherit StandardError=inherit KillMode=process IgnoreSIGPIPE=no SendSIGHUP=yes friendly-recovery-0.2.31ubuntu2/lib/systemd/system/friendly-recovery.target0000644000000000000000000000025413354736100024125 0ustar [Unit] Description=Friendly Recovery Mode DefaultDependencies=no Wants=friendly-recovery.service After=friendly-recovery.service Conflicts=shutdown.target AllowIsolate=yes friendly-recovery-0.2.31ubuntu2/po/0000755000000000000000000000000012533061024014072 5ustar friendly-recovery-0.2.31ubuntu2/po/Makefile0000644000000000000000000000100112533055773015540 0ustar PACKAGE=friendly-recovery top_srcdir = .. all: friendly-recovery.pot update-po update-mo friendly-recovery.pot: POTFILES.in xgettext --files-from=./POTFILES.in --lang shell --output $(PACKAGE).pot update-mo: $(patsubst %.po,%.mo,$(wildcard *.po)) %.mo : %.po mkdir -p $(top_srcdir)/usr/share/locale/$(subst .po,,$<)/LC_MESSAGES/ msgfmt $< -o $(top_srcdir)/usr/share/locale/$(subst .po,,$<)/LC_MESSAGES/$(PACKAGE).mo update-po: for f in *.po; do \ msgmerge -o $$f $$f friendly-recovery.pot; \ done friendly-recovery-0.2.31ubuntu2/po/POTFILES.in0000644000000000000000000000056112533055773015667 0ustar ../lib/recovery-mode/options/apt-snapshots ../lib/recovery-mode/options/clean ../lib/recovery-mode/options/dpkg ../lib/recovery-mode/options/failsafeX ../lib/recovery-mode/options/fsck ../lib/recovery-mode/options/grub ../lib/recovery-mode/options/network ../lib/recovery-mode/options/root ../lib/recovery-mode/options/system-summary ../lib/recovery-mode/recovery-menu friendly-recovery-0.2.31ubuntu2/po/de.po0000644000000000000000000001426012533055773015043 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-03-08 14:38-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../lib/recovery-mode/options/apt-snapshots:20 #, sh-format msgid "Revert to old snapshot and reboot" msgstr "" #: ../lib/recovery-mode/options/apt-snapshots:31 #, sh-format msgid "Snapshot" msgstr "" #: ../lib/recovery-mode/options/clean:6 #, sh-format msgid "Try to make free space" msgstr "" #: ../lib/recovery-mode/options/clean:12 #, sh-format msgid "" "Trying to find packages you don't need (apt-get autoremove), please review " "carefully." msgstr "" #: ../lib/recovery-mode/options/clean:16 ../lib/recovery-mode/options/dpkg:41 #: ../lib/recovery-mode/options/grub:16 ../lib/recovery-mode/recovery-menu:84 #, sh-format msgid "Finished, please press ENTER" msgstr "" #: ../lib/recovery-mode/options/dpkg:6 #, sh-format msgid "Repair broken packages" msgstr "" #: ../lib/recovery-mode/options/failsafeX:11 #, sh-format msgid "Run in failsafe graphic mode" msgstr "" #: ../lib/recovery-mode/options/fsck:6 #, sh-format msgid "Check all file systems" msgstr "" #: ../lib/recovery-mode/options/grub:6 #, sh-format msgid "Update grub bootloader" msgstr "" #: ../lib/recovery-mode/options/network:6 #, sh-format msgid "Enable networking" msgstr "" #: ../lib/recovery-mode/options/root:9 #, sh-format msgid "Drop to root shell prompt" msgstr "" #: ../lib/recovery-mode/options/system-summary:9 #: ../lib/recovery-mode/options/system-summary:107 #, sh-format msgid "System summary" msgstr "" #: ../lib/recovery-mode/options/system-summary:15 #, sh-format msgid "Read-only mode" msgstr "" #: ../lib/recovery-mode/options/system-summary:17 #, sh-format msgid "Read/Write mode" msgstr "" #: ../lib/recovery-mode/options/system-summary:21 #, sh-format msgid "none" msgstr "" #: ../lib/recovery-mode/options/system-summary:23 #, sh-format msgid "IP configured" msgstr "" #: ../lib/recovery-mode/options/system-summary:25 #, sh-format msgid "IP and DNS configured" msgstr "" #: ../lib/recovery-mode/options/system-summary:36 #, sh-format msgid "No software RAID detected (mdstat)" msgstr "" #: ../lib/recovery-mode/options/system-summary:42 #, sh-format msgid "No LVM detected (vgscan)" msgstr "" #: ../lib/recovery-mode/options/system-summary:46 #, sh-format msgid "Unknown (must be run as root)" msgstr "" #: ../lib/recovery-mode/options/system-summary:48 #, sh-format msgid "Physical Volumes:" msgstr "" #: ../lib/recovery-mode/options/system-summary:51 #: ../lib/recovery-mode/options/system-summary:60 #, sh-format msgid "ok (good)" msgstr "" #: ../lib/recovery-mode/options/system-summary:53 #: ../lib/recovery-mode/options/system-summary:62 #, sh-format msgid "not ok (BAD)" msgstr "" #: ../lib/recovery-mode/options/system-summary:57 #, sh-format msgid "Volume Groups:" msgstr "" #: ../lib/recovery-mode/options/system-summary:69 #, sh-format msgid "unknown (read-only filesystem)" msgstr "" #: ../lib/recovery-mode/options/system-summary:71 #, sh-format msgid "unknown (must be run as root)" msgstr "" #: ../lib/recovery-mode/options/system-summary:75 #, sh-format msgid "yes (good)" msgstr "" #: ../lib/recovery-mode/options/system-summary:77 #, sh-format msgid "no (BAD)" msgstr "" #: ../lib/recovery-mode/options/system-summary:81 #, sh-format msgid "(Use arrows/PageUp/PageDown keys to scroll and TAB key to select)" msgstr "" #: ../lib/recovery-mode/options/system-summary:83 #, sh-format msgid "=== General information ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:84 #, sh-format msgid "System mode:" msgstr "" #: ../lib/recovery-mode/options/system-summary:85 #, sh-format msgid "CPU information:" msgstr "" #: ../lib/recovery-mode/options/system-summary:86 #, sh-format msgid "Network connectivity:" msgstr "" #: ../lib/recovery-mode/options/system-summary:88 #, sh-format msgid "=== Detailed disk usage ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:91 #, sh-format msgid "=== Software RAID state ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:94 #, sh-format msgid "=== LVM state ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:97 #, sh-format msgid "=== Detailed memory usage ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:100 #, sh-format msgid "=== Detailed network configuration ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:103 #, sh-format msgid "=== System database (APT) ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:104 #, sh-format msgid "Database is consistent:" msgstr "" #: ../lib/recovery-mode/recovery-menu:20 #, sh-format msgid "Recovery Menu (filesystem state: read-only)" msgstr "" #: ../lib/recovery-mode/recovery-menu:22 #, sh-format msgid "Recovery Menu (filesystem state: read/write)" msgstr "" #: ../lib/recovery-mode/recovery-menu:26 #, sh-format msgid " Resume normal boot" msgstr "" #: ../lib/recovery-mode/recovery-menu:47 #, sh-format msgid "" "You are now going to exit the recovery mode and continue the boot sequence. " "Please note that some graphic drivers require a full graphical boot and so " "will fail when resuming from recovery.\n" "If that's the case, simply reboot from the login screen and then perform a " "standard boot." msgstr "" #: ../lib/recovery-mode/recovery-menu:67 #, sh-format msgid "" "Continuing will remount your / filesystem in read/write mode and mount any " "other filesystem defined in /etc/fstab.\n" "Do you wish to continue?" msgstr "" #: ../lib/recovery-mode/recovery-menu:95 #, sh-format msgid "" "The option you selected requires your filesystem to be in read-only mode. " "Unfortunately another option you selected earlier, made you exit this mode.\n" "The easiest way of getting back in read-only mode is to reboot your system." msgstr "" #~ msgid "Recovery Menu" #~ msgstr "Wiederhestellungs Menü" friendly-recovery-0.2.31ubuntu2/po/friendly-recovery.pot0000644000000000000000000001416412533055773020312 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-03-08 14:38-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: ../lib/recovery-mode/options/apt-snapshots:20 #, sh-format msgid "Revert to old snapshot and reboot" msgstr "" #: ../lib/recovery-mode/options/apt-snapshots:31 #, sh-format msgid "Snapshot" msgstr "" #: ../lib/recovery-mode/options/clean:6 #, sh-format msgid "Try to make free space" msgstr "" #: ../lib/recovery-mode/options/clean:12 #, sh-format msgid "" "Trying to find packages you don't need (apt-get autoremove), please review " "carefully." msgstr "" #: ../lib/recovery-mode/options/clean:16 ../lib/recovery-mode/options/dpkg:41 #: ../lib/recovery-mode/options/grub:16 ../lib/recovery-mode/recovery-menu:84 #, sh-format msgid "Finished, please press ENTER" msgstr "" #: ../lib/recovery-mode/options/dpkg:6 #, sh-format msgid "Repair broken packages" msgstr "" #: ../lib/recovery-mode/options/failsafeX:11 #, sh-format msgid "Run in failsafe graphic mode" msgstr "" #: ../lib/recovery-mode/options/fsck:6 #, sh-format msgid "Check all file systems" msgstr "" #: ../lib/recovery-mode/options/grub:6 #, sh-format msgid "Update grub bootloader" msgstr "" #: ../lib/recovery-mode/options/network:6 #, sh-format msgid "Enable networking" msgstr "" #: ../lib/recovery-mode/options/root:9 #, sh-format msgid "Drop to root shell prompt" msgstr "" #: ../lib/recovery-mode/options/system-summary:9 #: ../lib/recovery-mode/options/system-summary:107 #, sh-format msgid "System summary" msgstr "" #: ../lib/recovery-mode/options/system-summary:15 #, sh-format msgid "Read-only mode" msgstr "" #: ../lib/recovery-mode/options/system-summary:17 #, sh-format msgid "Read/Write mode" msgstr "" #: ../lib/recovery-mode/options/system-summary:21 #, sh-format msgid "none" msgstr "" #: ../lib/recovery-mode/options/system-summary:23 #, sh-format msgid "IP configured" msgstr "" #: ../lib/recovery-mode/options/system-summary:25 #, sh-format msgid "IP and DNS configured" msgstr "" #: ../lib/recovery-mode/options/system-summary:36 #, sh-format msgid "No software RAID detected (mdstat)" msgstr "" #: ../lib/recovery-mode/options/system-summary:42 #, sh-format msgid "No LVM detected (vgscan)" msgstr "" #: ../lib/recovery-mode/options/system-summary:46 #, sh-format msgid "Unknown (must be run as root)" msgstr "" #: ../lib/recovery-mode/options/system-summary:48 #, sh-format msgid "Physical Volumes:" msgstr "" #: ../lib/recovery-mode/options/system-summary:51 #: ../lib/recovery-mode/options/system-summary:60 #, sh-format msgid "ok (good)" msgstr "" #: ../lib/recovery-mode/options/system-summary:53 #: ../lib/recovery-mode/options/system-summary:62 #, sh-format msgid "not ok (BAD)" msgstr "" #: ../lib/recovery-mode/options/system-summary:57 #, sh-format msgid "Volume Groups:" msgstr "" #: ../lib/recovery-mode/options/system-summary:69 #, sh-format msgid "unknown (read-only filesystem)" msgstr "" #: ../lib/recovery-mode/options/system-summary:71 #, sh-format msgid "unknown (must be run as root)" msgstr "" #: ../lib/recovery-mode/options/system-summary:75 #, sh-format msgid "yes (good)" msgstr "" #: ../lib/recovery-mode/options/system-summary:77 #, sh-format msgid "no (BAD)" msgstr "" #: ../lib/recovery-mode/options/system-summary:81 #, sh-format msgid "(Use arrows/PageUp/PageDown keys to scroll and TAB key to select)" msgstr "" #: ../lib/recovery-mode/options/system-summary:83 #, sh-format msgid "=== General information ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:84 #, sh-format msgid "System mode:" msgstr "" #: ../lib/recovery-mode/options/system-summary:85 #, sh-format msgid "CPU information:" msgstr "" #: ../lib/recovery-mode/options/system-summary:86 #, sh-format msgid "Network connectivity:" msgstr "" #: ../lib/recovery-mode/options/system-summary:88 #, sh-format msgid "=== Detailed disk usage ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:91 #, sh-format msgid "=== Software RAID state ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:94 #, sh-format msgid "=== LVM state ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:97 #, sh-format msgid "=== Detailed memory usage ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:100 #, sh-format msgid "=== Detailed network configuration ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:103 #, sh-format msgid "=== System database (APT) ===" msgstr "" #: ../lib/recovery-mode/options/system-summary:104 #, sh-format msgid "Database is consistent:" msgstr "" #: ../lib/recovery-mode/recovery-menu:20 #, sh-format msgid "Recovery Menu (filesystem state: read-only)" msgstr "" #: ../lib/recovery-mode/recovery-menu:22 #, sh-format msgid "Recovery Menu (filesystem state: read/write)" msgstr "" #: ../lib/recovery-mode/recovery-menu:26 #, sh-format msgid " Resume normal boot" msgstr "" #: ../lib/recovery-mode/recovery-menu:47 #, sh-format msgid "" "You are now going to exit the recovery mode and continue the boot sequence. " "Please note that some graphic drivers require a full graphical boot and so " "will fail when resuming from recovery.\n" "If that's the case, simply reboot from the login screen and then perform a " "standard boot." msgstr "" #: ../lib/recovery-mode/recovery-menu:67 #, sh-format msgid "" "Continuing will remount your / filesystem in read/write mode and mount any " "other filesystem defined in /etc/fstab.\n" "Do you wish to continue?" msgstr "" #: ../lib/recovery-mode/recovery-menu:95 #, sh-format msgid "" "The option you selected requires your filesystem to be in read-only mode. " "Unfortunately another option you selected earlier, made you exit this mode.\n" "The easiest way of getting back in read-only mode is to reboot your system." msgstr "" friendly-recovery-0.2.31ubuntu2/COPYING0000644000000000000000000004310312533055773014526 0ustar GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. friendly-recovery-0.2.31ubuntu2/README0000644000000000000000000000076312533055773014360 0ustar User friendly recovery menu --------------------------- Implements the spec in https://wiki.ubuntu.com/FriendlyRecovery "Plugins" can be added easily: * install a script in /lib/recovery-mode/options * recovery-mode will invoke it with "test" - it should return "0" and print its name on stdout - if it returns "1" here it will not be added to the reovery-menu * if the script is run with no parameters it should perform its action * when the script is done, the menu is built again friendly-recovery-0.2.31ubuntu2/TODO0000644000000000000000000000010412533055773014155 0ustar - i18n for the menu - more recovery scripts (e.g. broken packages) friendly-recovery-0.2.31ubuntu2/debian/0000755000000000000000000000000013504416445014710 5ustar friendly-recovery-0.2.31ubuntu2/debian/rules0000755000000000000000000000030312533055773015770 0ustar #!/usr/bin/make -f %: dh "$@" --with systemd override_dh_auto_build: cd po; make override_dh_installinit: dh_installinit --no-start override_dh_systemd_start: dh_systemd_start --no-start friendly-recovery-0.2.31ubuntu2/debian/copyright0000644000000000000000000000117112533055773016647 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Ryan Lortie Files: * Copyright: (C) 2007 Ryan Lortie License: GPL-2+ Files: debian/* Copyright: (C) 2007-2014 Canonical Ltd. License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . The full text of the GPL is distributed as in /usr/share/common-licenses/GPL-2 on Debian systems. friendly-recovery-0.2.31ubuntu2/debian/friendly-recovery.postrm0000644000000000000000000000032212533055773021627 0ustar #!/bin/sh set -e case "$1" in remove) # Update grub if [ -e /boot/grub/grub.cfg ] && [ -x "$(which update-grub)" ]; then update-grub fi ;; esac #DEBHELPER# exit 0 friendly-recovery-0.2.31ubuntu2/debian/control0000644000000000000000000000121412533060777016315 0ustar Source: friendly-recovery Section: admin Priority: optional Maintainer: Michael Vogt Build-Depends: debhelper (>= 9), dh-systemd Standards-Version: 3.9.6 Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/friendly-recovery/ubuntu Package: friendly-recovery Architecture: all Depends: ${misc:Depends}, upstart | systemd-sysv, whiptail Breaks: upstart (<< 1.3-0ubuntu9), grub2 (<< 1.99-12ubuntu4), initramfs-tools (<< 0.99ubuntu4) Recommends: gettext-base, update-manager-core (>= 0.90.0) Description: Make recovery more user-friendly Make the recovery mode more user-friendly by providing a menu with pluggable options. friendly-recovery-0.2.31ubuntu2/debian/compat0000644000000000000000000000000212533055773016112 0ustar 9 friendly-recovery-0.2.31ubuntu2/debian/friendly-recovery.install0000644000000000000000000000000412533055773021746 0ustar lib friendly-recovery-0.2.31ubuntu2/debian/friendly-recovery.postinst0000644000000000000000000000032512533055773022171 0ustar #!/bin/sh set -e case "$1" in configure) # Update grub if [ -e /boot/grub/grub.cfg ] && [ -x "$(which update-grub)" ]; then update-grub fi ;; esac #DEBHELPER# exit 0 friendly-recovery-0.2.31ubuntu2/debian/friendly-recovery.upstart0000644000000000000000000000233712533055773022015 0ustar # Init script for friendly recovery start on recovery console owner task emits recovery emits startup emits mounted pre-start script if plymouth --ping; then plymouth hide-splash || true fi # Try to set the hostname and initialize the console start hostname || true start console-setup || true start setvtrgb || true # Make sure /run contains the required directories for the # recovery menu options mkdir -p /run/lock /run/shm || true # Emit the mounted event to trigger resolvconf and mounted-run initctl emit mounted MOUNTPOINT=/run || true # Finally start udev start udev || true udevadm trigger --action=add || true udevadm settle || true # And turn off kernel messages (to avoid corrupting the menu) dmesg --console-off || true end script script # Only start friendly-recovery when booting in recovery mode if ! grep -q "recovery" /proc/cmdline; then exit 0 fi if [ -x /lib/recovery-mode/recovery-menu ]; then exec /lib/recovery-mode/recovery-menu else exec /sbin/sulogin fi end script post-stop script if plymouth --ping; then plymouth show-splash fi initctl emit startup end script friendly-recovery-0.2.31ubuntu2/debian/friendly-recovery.preinst0000644000000000000000000000016513354736100021764 0ustar #!/bin/sh set -e # it is now a static service systemctl disable friendly-recovery.service || : #DEBHELPER# exit 0 friendly-recovery-0.2.31ubuntu2/debian/changelog0000644000000000000000000003374013504416445016571 0ustar friendly-recovery (0.2.31ubuntu2.1) xenial; urgency=medium [ Steven Clarkson ] * lib/systemd/system-generators/friendly-recovery: Symlink default.target to earlydir instead of normaldir to be able to access recovery mode even if default target has been set via systemctl set-default (LP: #1821252). -- Ioanna Alifieraki Fri, 21 Jun 2019 16:35:01 +0100 friendly-recovery (0.2.31ubuntu2) xenial; urgency=medium [ Dimitri John Ledkov ] * Actually use a friendly-recovery.target which systemd boots to using a generator for default.target symlink. This ensures that one is not in the middle of a boot transaction during recovery and can start/stop/change systemd units without interference. * Cleanup lintian warnings. (LP: #1766872) -- Eric Desrochers Tue, 02 Oct 2018 14:43:12 -0400 friendly-recovery (0.2.31ubuntu1) xenial; urgency=medium * /lib/recovery-mode/l10n.sh (LP: #1752362) - Default to LANG "C.UTF-8" and LANGUAGE "en" when locales are part of a language blacklist which doesn't have a good console fonts. -- Eric Desrochers Wed, 28 Feb 2018 15:23:43 -0500 friendly-recovery (0.2.31) wily; urgency=medium * debian/friendly-recovery.service: Don't put this between systemd-udev-settle.service and systemd-fsck-root.service, to avoid blocking fsck'ing the root partition on udev-settle. Only call udevadm settle when we are actually being run. (LP: #1459475) * Bump Standards-Version to 3.9.6; no changes necessary. -- Martin Pitt Mon, 01 Jun 2015 15:45:51 +0200 friendly-recovery (0.2.30) vivid; urgency=medium * Implement fsck by ourselves instead of letting the boot sequence already do that for us. (LP: #1438860) * dpkg: Quiesce "file not found" errors in apt cleanup. (LP: #887589) * Mount all file systems after fsck (like with mountall under upstart), to also cover separate /boot partitions for grub. (LP: #1438862) -- Martin Pitt Sun, 19 Apr 2015 12:49:11 +0100 friendly-recovery (0.2.29) vivid; urgency=medium * dpkg: Force release-upgrader to run without screen, as that fails under friendly-recovery. (LP: #1438865) -- Martin Pitt Wed, 15 Apr 2015 17:42:08 -0500 friendly-recovery (0.2.28) vivid; urgency=medium * network: Temporarily start D-Bus and NetworkManager manually, instead of calling the upstart scripts. We run even before local-fs-pre.target and can't rely on any dependencies or NM to even work, so just do this opportunistically. (LP: #1436336) -- Martin Pitt Thu, 09 Apr 2015 16:07:48 +0200 friendly-recovery (0.2.27) vivid; urgency=medium * debian/friendly-recovery.service: Fix dmesg path. (LP: #1354937) -- Martin Pitt Wed, 03 Dec 2014 13:01:36 +0100 friendly-recovery (0.2.26) utopic; urgency=medium * Drop /usr/share/recovery-mode symlink and transition, this happened in oneiric already. * Move from cdbs to dh to simplify/modernize build system. * Update to copyright format 1.0. * Bump Standards-Version to 3.9.5. * lib/recovery-mode/options/dpkg: Fix ubuntu-release-upgrader mode again: Update to Python 3, and fix --datadir. * When running under systemd, call its "remount-fs" service for remounting r/w instead of mountall. * Add systemd unit, hooking into local-fs-pre.target. This is based on emergency.target, but watches out for "recovery" on the kernel command line, similar to upstart. (LP: #1351316) Add alternative "systemd-sysv" dependency (LP: #1351306) -- Martin Pitt Mon, 04 Aug 2014 12:42:25 +0200 friendly-recovery (0.2.25) precise; urgency=low [ James Hunt ] * README: Fixed typo. * lib/recovery-mode/options/system-symmary: added brief LVM and APT summaries. [ Stéphane Graber ] * Update upstart job to ensure /run/shm and /run/lock are present. -- Stéphane Graber Wed, 14 Mar 2012 09:57:09 -0400 friendly-recovery (0.2.24) precise; urgency=low * Fix failsafeX (thanks to James Hunt) * Add new system-summary script, trying to give some useful information about the system * Add 'apt-get autoremove' to the clean script * Update translations -- Stéphane Graber Thu, 16 Feb 2012 12:09:19 -0500 friendly-recovery (0.2.23) precise; urgency=low * Upload the right version of recovery-menu (previous upload was a debug version ...) * Better handle the fsck case by having it be a one-time option that can only be triggered from read-only mode. -- Stéphane Graber Thu, 09 Feb 2012 23:15:58 -0500 friendly-recovery (0.2.22) precise; urgency=low * Rework of the menu - All options are now displayed again. - Filesystem state (read-only or read/write) is displayed in the title. - User is prompted the first time they access an option requiring read/write access to the filesystem. - netroot option was dropped and replaced by a new network option that tries to configure the network by calling ifupdown, Network Manager and falling back to regular dhclient. - A warning is now shown when the user wants to resume the boot sequence warning them that some X drivers don't work when the system was booted without KMS. Recommending the user to reboot in that case. -- Stéphane Graber Thu, 09 Feb 2012 17:00:38 -0500 friendly-recovery (0.2.21) precise; urgency=low * Replace remaining call to basename (/usr/bin/basename) by a bashism. To avoid using anything from /usr in friendly-recovery. -- Stéphane Graber Thu, 09 Feb 2012 12:49:55 -0500 friendly-recovery (0.2.20) precise; urgency=low * Update upstart job - Make sure to deal with anything failing (upstarts run with set -e) * Update l10n.sh - If /usr/share/locale doesn't exist, define eval_gettext as a simple echo and return. -- Stéphane Graber Thu, 09 Feb 2012 11:25:22 -0500 friendly-recovery (0.2.19) precise; urgency=low * Update upstart job - Drop all the || null in pre-start and replace by a final exit 0 - Start setvtrgb from pre-start - Emit mounted MOUNTPOINT=/run from pre-start (to start resolvconf) - Start udev from pre-start - Manually call udevadm trigger/settle from pre-start (upstart job hangs) - Turn off kernel output before showing the menu to avoid screen corruption -- Stéphane Graber Wed, 25 Jan 2012 13:24:03 -0500 friendly-recovery (0.2.18ubuntu1) precise; urgency=low * debian/friendly-recovery.upstart: Add missing emits stanzas to avoid breaking 'initctl check-config' (LP: #888095). -- James Hunt Fri, 16 Dec 2011 10:55:43 +0000 friendly-recovery (0.2.18) oneiric; urgency=low * Update upstart job - Replace tabs by spaces from last change (for consistency) - Start hostname and console-setup from pre-start (LP: #524605, LP: #782872) -- Stéphane Graber Sun, 25 Sep 2011 22:29:19 -0400 friendly-recovery (0.2.17) oneiric; urgency=low * Check for whiptail earlier in friendly-recovery to avoid noise related to /usr being on another file system. (LP: #852266) * Update dpkg option to work with newer versions of python. (LP: #77524) -- Stéphane Graber Thu, 22 Sep 2011 16:20:43 -0400 friendly-recovery (0.2.16) oneiric; urgency=low * debian/friendly-recovery.upstart: since plymouth might have been started from the initramfs (e.g., if cryptsetup is installed), we need to make sure we disable the splash before we try to take over the console, otherwise we'll be competing with plymouth for input. We try to restore the plymouth splash again before resuming boot. -- Steve Langasek Fri, 16 Sep 2011 16:24:22 -0700 friendly-recovery (0.2.15) oneiric; urgency=low * In postinst and postrm, also check for /boot/grub/grub.cfg before calling update-grub. This should avoid update-grub failing during livefs build. -- Stéphane Graber Thu, 15 Sep 2011 22:00:41 -0400 friendly-recovery (0.2.14) oneiric; urgency=low * Fix friendly-recovery.link being the wrong way around. -- Stéphane Graber Thu, 15 Sep 2011 17:24:55 -0400 friendly-recovery (0.2.13) oneiric; urgency=low * Move everything to /lib/recovery-mode/ (LP: #234409) * Don't use the fullpath to whiptail * Add new init script starting on recovery-mode (LP: #459376) * If whiptail can't be found, just start sulogin * Add a script to start mountall (remount everything read/write) (LP: #575469, LP: #651782) * Export READONLY to all scripts so they can test on the read/write state * Disable most scripts when the system is read only * Change file system check to happen when remount is called * Wait after all scripts returning output so the user can read it * Add postinst script to move any existing script to /lib/recovery-mode and make /usr/share/recovery-mode a symlink * Mark as breaking on older grub2, upstart and initramfs-tools * Small packaging refresh: - Bump standard to 3.9.2, no change needed - Drop simple patchsys (no patches) - No need to depend on bash (essential package) - Add ${misc:Depends} to dependencies -- Stéphane Graber Wed, 07 Sep 2011 20:18:53 -0400 friendly-recovery (0.2.12) oneiric; urgency=low * usr/share/recovery-mode/options/apt-snapshots: - add support for apt-btfs-snapshots (if available) -- Michael Vogt Tue, 19 Jul 2011 13:12:41 +0200 friendly-recovery (0.2.11) natty; urgency=low * usr/share/recovery-mode/l10n.sh: - blacklist certain locales where we don't have good console fonts (LP: #573502) * fix fsck option (LP: #566200) * refresh pot file -- Michael Vogt Tue, 19 Apr 2011 17:57:06 +0200 friendly-recovery (0.2.10) lucid; urgency=low * usr/share/recovery-mode/options/xfix renamed to failsafeX: - run failsafe X session (thanks to Bryce Harrington for the suggestion) * merged lp:~kelemeng/friendly-recovery/bug430926 -- Michael Vogt Tue, 06 Apr 2010 14:35:44 +0200 friendly-recovery (0.2.9) lucid; urgency=low * usr/share/recovery-mode/options/fsck: - add fsck option again that triggers the fsck on the next reboot -- Michael Vogt Fri, 13 Nov 2009 12:12:38 +0100 friendly-recovery (0.2.8.2) karmic; urgency=low * usr/share/recovery-mode/options/fsck: - Drop fsck option because we can not reliable remount the filesystem readonly for a fsck (LP: #363271). In karmic at least dbus, udevd, dhclient and rsyslog are running in single user mode. -- Michael Vogt Fri, 23 Oct 2009 22:43:21 +0200 friendly-recovery (0.2.8.1) jaunty; urgency=low * Fix dchclient which forced to use eth0 when dropping to root shell prompt (LP: #321381) -- Didier Roche Sun, 15 Feb 2009 21:00:53 +0100 friendly-recovery (0.2.8) jaunty; urgency=low [ James Burkle ] * usr/share/recovery-mode/options/netroot - add recovery mode with networking via dhclient (LP: #244885) [ Michael Vogt ] * usr/share/recovery-mode/options/grub - add support for grub reinstall * usr/share/recovery-mode/options/xfix: - better description (LP: #270496) -- James Burkle Fri, 24 Oct 2008 13:31:43 -0400 friendly-recovery (0.2.6) intrepid; urgency=low * usr/share/recovery-mode/options/clean: - add "try to make free space" option that invokes "apt-get clean" for now (should use the system-cleaner once it is available * usr/share/recovery-mode/options/xfix: - do not show the xfix option if no xserver-xorg.template is available (LP: #218954) -- Michael Vogt Wed, 30 Jul 2008 15:52:20 +0200 friendly-recovery (0.2.5) intrepid; urgency=low * debian/control: - recommnd "gettext-base" instead of gettext (thanks to Colin Watson) - move bzr tree to ~ubuntu-core-dev and update Vcs-Bzr -- Michael Vogt Fri, 04 Jul 2008 18:40:59 +0200 friendly-recovery (0.2.4) intrepid; urgency=low * usr/share/recovery-mode/options/dpkg: - support python2.6 in dpkg recovery too (thanks to Jοhan Kiviniemi) -- Michael Vogt Mon, 02 Jun 2008 16:01:45 +0200 friendly-recovery (0.2.3) intrepid; urgency=low * s/plugable/pluggable in description. -- Loic Minier Thu, 15 May 2008 14:44:46 +0200 friendly-recovery (0.2.2) intrepid; urgency=low * usr/share/recovery-mode/options/root: - use /sbin/sulogin to get a shell (LP: #220986) -- Michael Vogt Thu, 08 May 2008 11:33:29 +0200 friendly-recovery (0.2.1) intrepid; urgency=low * usr/share/recovery-mode/options/dpkg: - remove left-overs in partial/ - use update-manager-core partial upgrade mode (if available) -- Michael Vogt Tue, 06 May 2008 11:11:58 +0200 friendly-recovery (0.2) intrepid; urgency=low * usr/share/recovery-mode/options/fsck: - add new fsck option (LP: #218870) * usr/share/recovery-mode/options/dpkg: - add new package system repair option * add gettext support * debian/control: - recommend gettext (will work without too) -- Michael Vogt Mon, 28 Apr 2008 13:15:13 +0200 friendly-recovery (0.1) hardy; urgency=low * do not install /etc/event.d/rcS-sulogin (LP: #205911) * add missing whiptail dependency (LP: #203924) -- Michael Vogt Fri, 11 Apr 2008 13:03:26 +0200 friendly-recovery (0.0+bzr20070723) gutsy; urgency=low * initial ubuntu upload to implement https://wiki.ubuntu.com/FriendlyRecovery (thanks to Ryan Lortie) -- Michael Vogt Tue, 17 Jul 2007 17:20:00 +0100 friendly-recovery-0.2.31ubuntu2/debian/docs0000644000000000000000000000000712533055773015564 0ustar README