You are not logged in.

#101 2009-10-10 12:17:52

adriano
Member
From: Italy
Registered: 2008-07-29
Posts: 129
Website

Re: Quick-init - Boot your arch in 10 seconds

I think you must move udev before encrypted volumes but you should not have quick boot


Italian ArchLinux User
My projects on my homepage: www.obliquo.net

Offline

#102 2009-10-19 21:22:06

gog
Member
Registered: 2009-10-13
Posts: 103

Re: Quick-init - Boot your arch in 10 seconds

Hello, I like the idea of a static boot!

problem: quickinit assumes /etc/inittab is virgin and backups an original inittab from arch boot scripts, thats not very archlike. so here's a simple patch for that:http://pastebin.com/m56843599

--- quick-init.install.orig    2009-10-19 16:37:56.030487686 -0430
+++ quick-init.install    2009-10-19 16:45:20.710442408 -0430
 -1,43 +1,70 @@
 post_install() {
     echo ""
     echo -e "\033[37;41;1m W A R N I N G \033[0m"
-    echo "Copy these lines on line 28 into /etc/qinit.sysinit and save it"
+    echo "Copy these lines into /etc/qinit.sysinit, line 28"
     echo ""
-    
+
     for dev in `fdisk -l | awk '{print $1}' | grep dev`; 
     do
-    numero1=$(ls -l $dev | awk '{print $5}' | awk -F"," '{print $1}')
+        numero1=$(ls -l $dev | awk '{print $5}' | awk -F"," '{print $1}')
+
+        numero2=$(ls -l $dev | awk '{print $6}')
+
+        block=$(echo $dev | awk '{print $1}' | grep dev | cut -d/ -f3);
 
-    numero2=$(ls -l $dev | awk '{print $6}')
+        makenode_block="/bin/mknod -m 660 /dev/$block b $numero1 $numero2"
+        echo $makenode_block;
 
-    block=$(echo $dev | awk '{print $1}' | grep dev | cut -d/ -f3);
-    
-    makenode_block="/bin/mknod -m 660 /dev/$block b $numero1 $numero2"
-    echo $makenode_block;
-    
-    if [ -b /lib/udev/devices/$block ]; then
-    rm -r /lib/udev/devices/$block
-    fi
+        if [ -b /lib/udev/devices/$block ]; then
+            rm -r /lib/udev/devices/$block
+        fi
     done
 
+    /bin/cat /etc/inittab > /etc/inittab.bak
     /bin/cat /etc/qinittab > /etc/inittab
-    /bin/cat /etc/inittab.backup > /etc/inittab.original
-    
-  echo ""    
-  echo ""
-  echo "Your /etc/inittab was replaced by /etc/qinittab"
-  echo "Default copy inittab is saved in /etc/inittab.original"
-  echo ""
+
+    echo ""    
+    echo "/etc/inittab --> /etc/inittab.bak"
+    echo ""    
+    echo "/etc/qinittab --> /etc/inittab"
+    echo ""
 }
 
 post_upgrade() {
-    post_install
+        echo ""
+    echo -e "\033[37;41;1m W A R N I N G \033[0m"
+    echo "Copy these lines into /etc/qinit.sysinit, line 28"
+    echo ""
+
+    for dev in `fdisk -l | awk '{print $1}' | grep dev`; 
+    do
+        numero1=$(ls -l $dev | awk '{print $5}' | awk -F"," '{print $1}')
+
+        numero2=$(ls -l $dev | awk '{print $6}')
+
+        block=$(echo $dev | awk '{print $1}' | grep dev | cut -d/ -f3);
+
+        makenode_block="/bin/mknod -m 660 /dev/$block b $numero1 $numero2"
+        echo $makenode_block;
+
+        if [ -b /lib/udev/devices/$block ]; then
+            rm -r /lib/udev/devices/$block
+        fi
+    done
+
+    /bin/cat /etc/inittab > /etc/qinittab.bak
+    /bin/cat /etc/qinittab > /etc/inittab
+
+    echo ""    
+    echo "/etc/inittab --> /etc/qinittab.bak"
+    echo ""    
+    echo "/etc/qinittab --> /etc/inittab"
+    echo ""
 }
 
 post_remove() {
-  echo ""
-  echo -e "\033[37;41;1m W A R N I N G \033[0m"
-  echo -e "\033[37;41;1m Before the reboot you MUST restore the default inittab with: \033[0m"
-  echo " cp /etc/inittab.original /etc/inittab"
-  echo ""
+    echo ""
+    echo -e "\033[37;41;1m W A R N I N G \033[0m"
+    echo -e "\033[37;41;1m Before rebooting you MUST restore /etc/inittab.bak \033[0m"
+    echo ""
 }

it cats /etc/inittab > /etc/inittab.bak, it just touches .install

also, you wont have to repackage every time the bootscripts get upgraded. Thanks for the init scripts!

Last edited by gog (2009-10-20 01:56:08)

Offline

#103 2009-10-19 23:16:29

tuxfusion
Member
Registered: 2007-12-31
Posts: 98

Re: Quick-init - Boot your arch in 10 seconds

+1

i was so annoyed by the fact this package actually deletes my personal inittab i didn't even post it

please fix

Thx

Offline

#104 2009-10-27 06:39:04

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Quick-init - Boot your arch in 10 seconds

When using quick-init I cannot get my external to mount on startup.

I used to add "mount -t ext3 /dev/sdb1 /media/Downloads" to my rc.local but this no longer works.

Any ideas?

Offline

#105 2009-10-27 18:38:45

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: Quick-init - Boot your arch in 10 seconds

tuxfusion wrote:

+1

i was so annoyed by the fact this package actually deletes my personal inittab i didn't even post it

please fix

Thx

It doesn't delete your inittab... it moves it to inittab.bak... just restore the file.

Offline

#106 2009-10-30 22:40:24

kYd
Member
Registered: 2009-01-20
Posts: 78

Re: Quick-init - Boot your arch in 10 seconds

Sjet wrote:
ugkbunb wrote:

wouldn't boot on my system... hung on checking filesystems... complaining that I should run a manual check... doing that did nothing... ?

Same problem here.

:: Checking Filesystems                                                                      [BUSY]
/dev/mapper/root:
The superblock could not be read or does not describe a correct ext2 
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock 
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
                                                                                             [FAIL]

I'm having this same problem. My root is /dev/sda2 and is ext2.
Any advice on this please.

#cat /etc/fstab

# /etc/fstab: static file system information
# <file system>        <dir>         <type>    <options>          <dump> <pass>

none                /dev/pts      devpts    defaults         0 0
none                /dev/shm      tmpfs        defaults        0 0


/dev/sda15 /home ext4 defaults 0 1
/dev/sda10 /pictures ext4 defaults 0 1
/dev/sda11 /videos ext4 defaults 0 1
/dev/sda12 /documents ext4 defaults 0 1
/dev/sda13 /downloads ext4 defaults 0 1
/dev/sda14 /misc ext4 defaults 0 1
/dev/sda6 /tmp ext4 defaults 0 1
/dev/sda9 /music ext4 defaults 0 1
/dev/sda7 swap swap defaults 0 0
/dev/sda5 /var ext4 defaults 0 1
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 / ext2 defaults 0 1

none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0

Offline

#107 2009-10-31 05:42:39

pacman
Member
Registered: 2009-10-30
Posts: 10

Re: Quick-init - Boot your arch in 10 seconds

ugkbunb wrote:
tuxfusion wrote:

+1

i was so annoyed by the fact this package actually deletes my personal inittab i didn't even post it

please fix

Thx

It doesn't delete your inittab... it moves it to inittab.bak... just restore the file.

It does delete inittab.

Check the .install. It moves a inittab included in the package that is the same inittab from the original arch initscript package.

Offline

#108 2009-11-03 08:31:42

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Quick-init - Boot your arch in 10 seconds

This works nicely, from grub to X in 9.5 seconds with initrd for me. i'm not sure i will invest the time to compile a static kernel, since this is already really fast. smile


ᶘ ᵒᴥᵒᶅ

Offline

#109 2009-11-04 13:04:03

kYd
Member
Registered: 2009-01-20
Posts: 78

Re: Quick-init - Boot your arch in 10 seconds

Any one have any ideas about post #106.

I'm dying to try this out but I wont' mount my ext2 root partition correctly.

The previous version finit-arc worked ok, but this one doesn't.

Offline

#110 2009-11-05 14:38:17

yesint
Member
Registered: 2009-11-05
Posts: 4

Re: Quick-init - Boot your arch in 10 seconds

I've just installed quick-boot and it works great except one thing - HAL is not starting. I can't even start it by hand:

sudo  /etc/rc.d/hal restart
:: Stopping Hardware Abstraction Layer                                   [FAIL]
:: Starting Hardware Abstraction Layer                                   [FAIL]

I have no idea why it is so - HAL is installed and was working fine before quick-boot. What's wrong?

Offline

#111 2009-11-06 02:48:22

allbluedream
Member
Registered: 2008-04-06
Posts: 155

Re: Quick-init - Boot your arch in 10 seconds

yesint wrote:

I've just installed quick-boot and it works great except one thing - HAL is not starting. I can't even start it by hand:

sudo  /etc/rc.d/hal restart
:: Stopping Hardware Abstraction Layer                                   [FAIL]
:: Starting Hardware Abstraction Layer                                   [FAIL]

I have no idea why it is so - HAL is installed and was working fine before quick-boot. What's wrong?

Got the same problem. There is another report of the same problem on P.2 of this thread, however he was able to get hal running once in a while.

I suspect that hal is actually running. It is shown with

ls /var/run/daemons/

It's just that I seem to have lost control over hal. I cannot stop it or restart it. Also, I cannot load pulseaudio correctly with hal, but nothing is seriously wrong at this moment, while quick-init does cut my boot time down from 24 to 17. I don't really know if this 7 seconds is really worth the trouble---maybe just another incurable illness of a linux user.

-----------------------

Oops... forgot to say `good job' and `thank you' to adriano!

Last edited by allbluedream (2009-11-06 02:49:52)

Offline

#112 2009-11-11 23:15:25

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: Quick-init - Boot your arch in 10 seconds

Hi Adriano,

many thanks - quite a few time I tried to reduce the boot time with removing services and kernel kompiling but nothing worked properly. This is just amazing how much my boot time to console improved.  (45s to 11s) big_smile

Only the xserver still takes quite a lot of time to finally display something (and I use just DWM) -- any tip ?? It seems like he's trying several modes before he displays a picture (or is it udev or wicd) ?

Last edited by Gutti (2009-11-11 23:20:08)

Offline

#113 2009-11-12 05:39:09

Changaco
Member
Registered: 2008-09-01
Posts: 15
Website

Re: Quick-init - Boot your arch in 10 seconds

Gutti wrote:

Only the xserver still takes quite a lot of time to finally display something (and I use just DWM) -- any tip ?? It seems like he's trying several modes before he displays a picture (or is it udev or wicd) ?

This is what gets better with KMS, just wait for it.

Offline

#114 2009-11-12 07:48:20

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: Quick-init - Boot your arch in 10 seconds

Hey Changaco,

thanks for the reply. I discovered this

http://blogs.koolwal.net/2009/11/02/how … ux-kernel/

Seems already available. So will KMS be directly integrated and activated for arch ?

But non-the-less in regard to speed nothing is better than hard-wiring settings. So is there a way to start Xorg in the right mode e.g. defining the modelines in xorg.conf and does that speed up the xserver start?   

Cheers Phil

Last edited by Gutti (2009-11-12 07:49:20)

Offline

#115 2009-11-12 08:08:57

Changaco
Member
Registered: 2008-09-01
Posts: 15
Website

Re: Quick-init - Boot your arch in 10 seconds

Gutti wrote:

http://blogs.koolwal.net/2009/11/02/how … ux-kernel/

Seems already available. So will KMS be directly integrated and activated for arch ?

Whether you can use KMS depends on your graphic card and the driver you use for it. Searching the wiki for KMS gives you what you need although we don't have a dedicated page for KMS.

Gutti wrote:

But non-the-less in regard to speed nothing is better than hard-wiring settings. So is there a way to start Xorg in the right mode e.g. defining the modelines in xorg.conf and does that speed up the xserver start?

I have no idea.

Offline

#116 2009-11-12 08:59:01

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: Quick-init - Boot your arch in 10 seconds

Gutti wrote:

Hey Changaco,

But non-the-less in regard to speed nothing is better than hard-wiring settings. So is there a way to start Xorg in the right mode e.g. defining the modelines in xorg.conf and does that speed up the xserver start?   

Cheers Phil

I'd say, try setting up your desired resolution in /etc/X11/xorg.conf . I'm not sure how much of a speed gain you will get, but if you want to hardwire it, that's the way to go. You can find more info on that on Arch's Wiki.

Good luck.

Offline

#117 2009-11-13 08:07:27

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: Quick-init - Boot your arch in 10 seconds

Hey guys,

I got KMS working, was easy and it seems really working well. Screen flicker during X11 start is gone ! - So really no need to mess with xorg.conf. smile

It however didn't solve mit X11 start time. Looks like its waiting for the network to come up, but I already started everything in the background.

DAEMONS=(@syslog-ng dbus !network !networkmanager !dhcbdb @wicd !rpcbind !nfs-common !netfs @crond @alsa @cpufreq @laptop-mode)

Additionally bootchart stops logging after 12s whereas the real boot process takes 25s. I don't know why bootchartd exits prematurely because I start none of these processes

local exit_proc="gdmgreeter gdm-binary kdm_greet kdm"

So I'm sort of taping in the dark

Cheers Phil

Offline

#118 2009-11-13 16:47:15

Changaco
Member
Registered: 2008-09-01
Posts: 15
Website

Re: Quick-init - Boot your arch in 10 seconds

It waits for HAL, not for the network. BTW dbus is started by HAL, no need to add it.

Offline

#119 2009-11-14 08:19:15

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: Quick-init - Boot your arch in 10 seconds

Thanks You are right, I corrected that.

But even with disabling all daemons in that line I still got a very long X11 start time. I now got bootchart working. Perhaps somebody can comment on it. Eventually I just ask too much from an NC10. I hope the link below works for u - should show a boot-chart.

http://service.gmx.net/de/cgi/dfstools? … fullscreen

Two problems I discovered:
- xbacklight doesn't work anymore

xbacklight -set 60
No outputs have backlight property

- hibernate works, but it doesn't resume anymore

Last edited by Gutti (2009-11-14 08:33:08)

Offline

#120 2009-11-14 08:37:45

Changaco
Member
Registered: 2008-09-01
Posts: 15
Website

Re: Quick-init - Boot your arch in 10 seconds

Gutti wrote:

Thanks You are right, I corrected that.

But even with disabling all daemons in that line I still got a very long X11 start time. I now got bootchart working. Perhaps somebody can comment on it. Eventually I just ask too much from an NC10. I hope the link below works for u - should show a boot-chart.

http://service.gmx.net/de/cgi/dfstools? … fullscreen

The link doesn't work for me.

Offline

#121 2009-11-14 18:34:35

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: Quick-init - Boot your arch in 10 seconds

Sorry,

try that  http://www.gmx.de/mc/XS0ePuzU961A8vtvKp8dgb1Jf2erAm

I start a few things in .xinitrc before dwm (see below). You'll see them in the bootchart, but even with only starting dwm it waits for quite a while (more than five seconds, doesn't always seem to be the same amount of time).  - Adriano mentioned something of X - quickstart, was that only related of starting x via autologin, or did he mean to disable hotplugging in X ?

By the way I hope all of this is still thread relevant. I'm relatively new here so give me a wink, when I should move it into a new thread

 batt(){
 echo $(acpi | awk '{ print $3, $4 }' | sed s/","//g)
 }


 xbindkeys &
 feh --bg-scale  ~/Photos/2009/LakeDistrict/IMG_0965.JPG &
 xscreensaver -no-splash &
 Eterm &
 skype &

 while true; do
  xsetroot -name "`batt``" " ``date '+%a %Y%m%d %H:%M'`"
  sleep 1m
 done &

exec dwm

Last edited by Gutti (2009-11-14 18:40:22)

Offline

#122 2009-11-16 08:12:24

corsakh
Member
Registered: 2009-11-08
Posts: 104

Re: Quick-init - Boot your arch in 10 seconds

Thank you, works great. Conflicts with splashy though, sysvinit module or something like that.

Offline

#123 2009-11-16 12:06:02

Changaco
Member
Registered: 2008-09-01
Posts: 15
Website

Re: Quick-init - Boot your arch in 10 seconds

Gutti wrote:

I start a few things in .xinitrc before dwm (see below). You'll see them in the bootchart, but even with only starting dwm it waits for quite a while (more than five seconds, doesn't always seem to be the same amount of time).

The delay is strange indeed, I have no idea on how to fix this sorry.

Offline

#124 2009-11-16 23:28:30

Gutti
Member
Registered: 2009-09-19
Posts: 17

Re: Quick-init - Boot your arch in 10 seconds

Hi Changaco,

thanks for Your effort after all. I have a couple of problems (eventually I did too many things at once). I guess I better roll back to my last safety copy and restart it from there.

Cheers

Offline

#125 2009-11-17 21:42:18

Duologic
Member
From: Belgium
Registered: 2007-11-11
Posts: 249

Re: Quick-init - Boot your arch in 10 seconds

Just figured something out. My boot chart said I had a boot time of 13 seconds, but that ain't true.
To improve my boot time and trying to get it below 10s, I started to look at the boot chart in more detail  and I noticed my window manager didn't show up in there. It should because I wanted to measure 'from grub to operational status'.
I've also noticed that quick-init starts X in init 3, which results that bootchartd stops measuring at some-getty and not at my window manager. See code below, cut from /sbin/bootchartd, for more detail.
This results in 23 seconds on my boot chart instead of the beautiful 13 seconds.

        ...
        # The processes we have to wait for
        local exit_proc="awesome gdmgreeter gdm-binary kdm_greet kdm"
        # early_login in FC4 starts gdm early, so fall back to mingetty
        local early_login="no"
        grep -q early_login /proc/cmdline && early_login="yes"
        if [ "$runlevel" -eq "2" -o "$runlevel" -eq "3" -o "$early_login" = "yes" ]; then
#original:  exit_proc="mingetty agetty rungetty getty"
                exit_proc="awesome"
        fi
        ...

So don't forget to adjust bootchartd's code.

Edit: typo + my window manager is awesome, if you couldn't figure that out

Last edited by Duologic (2009-11-17 21:43:42)

Offline

Board footer

Powered by FluxBB