UbuntuWiki:UsplashTodo
文章出处: |
{{#if: | {{{2}}} | https://wiki.ubuntu.com/UsplashTodo }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/af | • {{#if: UbuntuWiki:UsplashTodo|Afrikaans| [[::UbuntuWiki:UsplashTodo/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ar | • {{#if: UbuntuWiki:UsplashTodo|العربية| [[::UbuntuWiki:UsplashTodo/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/az | • {{#if: UbuntuWiki:UsplashTodo|azərbaycanca| [[::UbuntuWiki:UsplashTodo/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/bcc | • {{#if: UbuntuWiki:UsplashTodo|جهلسری بلوچی| [[::UbuntuWiki:UsplashTodo/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/bg | • {{#if: UbuntuWiki:UsplashTodo|български| [[::UbuntuWiki:UsplashTodo/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/br | • {{#if: UbuntuWiki:UsplashTodo|brezhoneg| [[::UbuntuWiki:UsplashTodo/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ca | • {{#if: UbuntuWiki:UsplashTodo|català| [[::UbuntuWiki:UsplashTodo/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/cs | • {{#if: UbuntuWiki:UsplashTodo|čeština| [[::UbuntuWiki:UsplashTodo/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/de | • {{#if: UbuntuWiki:UsplashTodo|Deutsch| [[::UbuntuWiki:UsplashTodo/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/el | • {{#if: UbuntuWiki:UsplashTodo|Ελληνικά| [[::UbuntuWiki:UsplashTodo/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/es | • {{#if: UbuntuWiki:UsplashTodo|español| [[::UbuntuWiki:UsplashTodo/es|español]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/fa | • {{#if: UbuntuWiki:UsplashTodo|فارسی| [[::UbuntuWiki:UsplashTodo/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/fi | • {{#if: UbuntuWiki:UsplashTodo|suomi| [[::UbuntuWiki:UsplashTodo/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/fr | • {{#if: UbuntuWiki:UsplashTodo|français| [[::UbuntuWiki:UsplashTodo/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/gu | • {{#if: UbuntuWiki:UsplashTodo|ગુજરાતી| [[::UbuntuWiki:UsplashTodo/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/he | • {{#if: UbuntuWiki:UsplashTodo|עברית| [[::UbuntuWiki:UsplashTodo/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/hu | • {{#if: UbuntuWiki:UsplashTodo|magyar| [[::UbuntuWiki:UsplashTodo/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/id | • {{#if: UbuntuWiki:UsplashTodo|Bahasa Indonesia| [[::UbuntuWiki:UsplashTodo/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/it | • {{#if: UbuntuWiki:UsplashTodo|italiano| [[::UbuntuWiki:UsplashTodo/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ja | • {{#if: UbuntuWiki:UsplashTodo|日本語| [[::UbuntuWiki:UsplashTodo/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ko | • {{#if: UbuntuWiki:UsplashTodo|한국어| [[::UbuntuWiki:UsplashTodo/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ksh | • {{#if: UbuntuWiki:UsplashTodo|Ripoarisch| [[::UbuntuWiki:UsplashTodo/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/mr | • {{#if: UbuntuWiki:UsplashTodo|मराठी| [[::UbuntuWiki:UsplashTodo/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ms | • {{#if: UbuntuWiki:UsplashTodo|Bahasa Melayu| [[::UbuntuWiki:UsplashTodo/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/nl | • {{#if: UbuntuWiki:UsplashTodo|Nederlands| [[::UbuntuWiki:UsplashTodo/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/no | • {{#if: UbuntuWiki:UsplashTodo|norsk| [[::UbuntuWiki:UsplashTodo/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/oc | • {{#if: UbuntuWiki:UsplashTodo|occitan| [[::UbuntuWiki:UsplashTodo/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/pl | • {{#if: UbuntuWiki:UsplashTodo|polski| [[::UbuntuWiki:UsplashTodo/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/pt | • {{#if: UbuntuWiki:UsplashTodo|português| [[::UbuntuWiki:UsplashTodo/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ro | • {{#if: UbuntuWiki:UsplashTodo|română| [[::UbuntuWiki:UsplashTodo/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/ru | • {{#if: UbuntuWiki:UsplashTodo|русский| [[::UbuntuWiki:UsplashTodo/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/si | • {{#if: UbuntuWiki:UsplashTodo|සිංහල| [[::UbuntuWiki:UsplashTodo/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/sq | • {{#if: UbuntuWiki:UsplashTodo|shqip| [[::UbuntuWiki:UsplashTodo/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/sr | • {{#if: UbuntuWiki:UsplashTodo|српски / srpski| [[::UbuntuWiki:UsplashTodo/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/sv | • {{#if: UbuntuWiki:UsplashTodo|svenska| [[::UbuntuWiki:UsplashTodo/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/th | • {{#if: UbuntuWiki:UsplashTodo|ไทย| [[::UbuntuWiki:UsplashTodo/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/tr | • {{#if: UbuntuWiki:UsplashTodo|Türkçe| [[::UbuntuWiki:UsplashTodo/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/vi | • {{#if: UbuntuWiki:UsplashTodo|Tiếng Việt| [[::UbuntuWiki:UsplashTodo/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/yue | • {{#if: UbuntuWiki:UsplashTodo|粵語| [[::UbuntuWiki:UsplashTodo/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/zh | • {{#if: UbuntuWiki:UsplashTodo|中文| [[::UbuntuWiki:UsplashTodo/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/zh-hans | • {{#if: UbuntuWiki:UsplashTodo|中文(简体)| [[::UbuntuWiki:UsplashTodo/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UsplashTodo | UbuntuWiki:UsplashTodo | {{#if: | :}}UbuntuWiki:UsplashTodo}}/zh-hant | • {{#if: UbuntuWiki:UsplashTodo|中文(繁體)| [[::UbuntuWiki:UsplashTodo/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuWiki:UsplashTodo|:UbuntuWiki:UsplashTodo|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuWiki:UsplashTodo/zh | | {{#ifexist: UbuntuWiki:UsplashTodo/zh | | {{#ifeq: {{#titleparts:UbuntuWiki:UsplashTodo|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuWiki:UsplashTodo|1|-1|}} | zh | | }}
TODO list
See also [WartyWarthog/usplash] (Usersplash/microsplash/Ubuntusplash) aka Mad Phat Splash
fsck attention seeking
Current code that runs fsck is in:
- /etc/init.d/checkfs.sh
echo "Checking all file systems..." fsck $spinner -R -A $fix $force if [ $? -gt 1 ] then echo echo "fsck failed. Please repair manually." echo echo "CONTROL-D will exit from this shell and continue system startup." echo # Start a single user shell on the console /sbin/sulogin $CONSOLE fi
A chvt/unotify can be added before the sulogin command. *However*, fsck supports an option -r for interactive conformations to repair the filesystem; ...but it's the default and there doesn't seem to be an option to *not* interactively repair the filesystem (we need it fail so that we can chvt to it).
-r Interactively repair the filesystem (ask for confirmations). ...
Looks like this can be got around with -n:
-n Open the filesystem read-only, and assume an answer of `no' to all questions. Allows e2fsck to be used non-interactively.
fsck progress bar
-C fd This option causes e2fsck to write completion information to the specified file descriptor so that the progress of the filesystem check can be monitored.
fsck on rootfs
Similar code appears in /etc/init.d/checkroot.sh. This will have been run before usplashd (confirm this), but after usplat, meaning that the console has already been switched away. In this case it needs to do a `chvt' on error, as it can't call usquirt to switch (usplashd isn't running). I thing this wants a little standaline program that tries to call usquirt and if that fails does an explicit chvt to the virtual terminal it was called from.
inittab sulogin
In
- /etc/inittab
~~:S:wait:/sbin/sulogin
Started the Single-User login, this needs to have a chvt in front of it. Not sure whether init can have more than one command per entry (eg /sbin/chvt 1; /sbin/sulogin). Shells are not necessarily available at this time, so a small binary wrapper needs to be created that does:
int main(int argc, char **argv) { ioctl (...); for(; *++argv;) execve(*argv, NULL, NULL); }
This can this be called as:
~~:S:wait:/sbin/uwrapper /sbin/sulogin
And hope that works.
ColinWatson: Why aren't shells necessarily available? You can boot with init=/bin/sh, after all.
Viper550: If we want to show activity during FSCK (espically the ones that happen every 30 mounts), why not we do this? Also depicted is my idea for a progress indicator on the Ubuntu logo while I'm here...