Commit graph

31 commits

Author SHA1 Message Date
Ludovic Courtès 477ea7015c boot-stage-1: Don't run `fsck' when on battery power.
svn path=/nixos/trunk/; revision=13484
2008-11-28 12:03:56 +00:00
Eelco Dolstra ea67a42d26 * Continue booting when loading a kernel module fails. For instance,
on my system when booting Linux 2.6.27, ide-generic fails with
  "Cannot allocate memory" (maybe because ata_piix already claimed the
  IDE devices?).

svn path=/nixos/trunk/; revision=13147
2008-10-29 13:38:43 +00:00
Eelco Dolstra ff6a662f6e * Fixed some typos, cleaned up the indentation.
svn path=/nixos/trunk/; revision=12720
2008-08-26 12:45:36 +00:00
Marc Weber b69efea5a7 reworked error handling on startup (stage-1)
on any error you'll be asked to run (interactive/ final) shell or continue ignoring the error

svn path=/nixos/trunk/; revision=12639
2008-08-16 00:59:12 +00:00
Eelco Dolstra 2783f96ce7 * Remove the sleep-5-seconds hack in the initrd, instead loop until
the device to mount appears.  This wasn't previously possible
  because of root devices specified by label (mounted via "mount
  LABEL=foo ..."), but now we use /dev/disk/by-label so we can easily
  test whether the device already exists.

svn path=/nixos/trunk/; revision=12562
2008-08-08 23:15:36 +00:00
Eelco Dolstra a83becdee8 * When booting from the installation CD, just mount
/dev/disk/by-label/<label>.  This makes the whole
  autoDetectRootDevice/rootLabel machinery unnecessary.

svn path=/nixos/trunk/; revision=12561
2008-08-08 23:01:30 +00:00
Eelco Dolstra b760a4b8d9 * Use the persistent storage udev rules in the initrd so that we can
use /dev/disk/by-{label,id,...} names for the root FS.
* Kill udevd at the end of stage 1.  Don't know how it got killed
  previously...

svn path=/nixos/trunk/; revision=12560
2008-08-08 22:44:45 +00:00
Eelco Dolstra abbe260a80 * Don't use modprobe but insmod in the initrd. This means we don't
need module-init-tools in the initrd, since insmod is in klibc.
* Give the installation CD a label.

svn path=/nixos/trunk/; revision=12545
2008-08-08 17:07:04 +00:00
Eelco Dolstra 4d6548e94c * Use the tools from klibc in the initrd instead of the static-tools.
This makes the initrd a few megabytes smaller.
* Use run-init from klibc to delete everything in the initrd ramfs
  prior to switching to the real root FS.
* Removed the stage2Init argument.

svn path=/nixos/trunk/; revision=12544
2008-08-08 15:49:57 +00:00
Eelco Dolstra eaf6b8eb18 * udevtrigger / udevsettle -> udevadm.
svn path=/nixos/trunk/; revision=12229
2008-07-01 08:28:56 +00:00
Michael Raskin dc27e80fad Changes to support swsusp and custom kernels.
svn path=/nixos/trunk/; revision=11272
2008-03-24 19:37:32 +00:00
Eelco Dolstra 5d7f0e7967 * Suppress some errors if tuxonice isn't loaded.
svn path=/nixos/trunk/; revision=11259
2008-03-22 16:02:57 +00:00
Michael Raskin 4b8b296c30 Some changes (at least wipe resume image securely even without TuxOnIce)
svn path=/nixos/trunk/; revision=10881
2008-02-28 09:59:01 +00:00
Eelco Dolstra ce250ffb37 * Installation CD: include a lot of modules (SATA, PATA, Firewire,
USB, some SCSI controllers) in the initrd for mounting the CD.
* Add nix-hardware-scan to the system.
* Upstart: don't use the -v flag.
* Include the NixOS version in the ISO image filename.
* Include testdisk and ms-sys in the CD.
* Some bugfixes in the installer.

svn path=/nixos/trunk/; revision=10556
2008-02-08 15:59:15 +00:00
Eelco Dolstra 2da50038e4 * Use aufs instead of unionfs, it seems to be more stable.
svn path=/nixos/trunk/; revision=10390
2008-01-29 18:53:15 +00:00
Eelco Dolstra 49e8829053 * Use unionfs to provide a real Live CD, i.e., the files on the CD
appear writable (though all writes go to a tmpfs).  This allows you
  to run Nix operations on the Live CD.  However, we're not quite
  there yet since the CD doesn't have a valid Nix database.  So for
  instance a garbage collect will cause everything to be deleted,
  hanging the system.

svn path=/nixos/trunk/; revision=10276
2008-01-24 16:56:09 +00:00
Eelco Dolstra d4168a89b1 * Get rid of some spurious error messages.
svn path=/nixos/trunk/; revision=9968
2007-12-25 16:07:55 +00:00
Michael Raskin ba09f592c8 Added TuxOnIce support to initscripts
svn path=/nixos/trunk/; revision=9960
2007-12-20 21:33:45 +00:00
Eelco Dolstra 79c7f2cecc * Make fsck shut up about missing fstab. Contributed
by Nicolas Pierron.

svn path=/nixos/trunk/; revision=9571
2007-11-01 15:58:01 +00:00
Yury G. Kudryashov 867d814d27 Remove unneeded copy of lvm in initrd.
Something replaces symlinks in initrd with copies. Removed symlinks to lvm and
changed syntax (vgscan -> lvm vgscan).

svn path=/nixos/trunk/; revision=9233
2007-09-01 18:05:46 +00:00
Yury G. Kudryashov 3944916856 Support for mounting pseudo-felisystems during stage1
Don't ignore fsType field, don't add /mnt/root to device names not starting with
'/'.

svn path=/nixos/trunk/; revision=9232
2007-09-01 17:59:00 +00:00
Yury G. Kudryashov cd1023c50d * Added boot.initrd.lvm flag for use NixOS with LVM2 root partition.
* Added sis support for xserver.

svn path=/nixos/trunk/; revision=8924
2007-06-28 09:57:36 +00:00
Eelco Dolstra 15e3ec8dec * Additional debug options for stage 1 (can be passed on the kernel
command line):
  - debug1devices: drop into a shell after modules have been load and
    device nodes have been created.
  - debug1mounts: drop into a shell after file systems have been
    mounted.

svn path=/nixos/trunk/; revision=8804
2007-05-30 10:32:42 +00:00
Eelco Dolstra 6b627a9ca7 * Back out some Wouter-specific profile settings ;-)
svn path=/nixos/trunk/; revision=8801
2007-05-29 19:54:14 +00:00
Wouter den Breejen 2e50d9cd58 nixos dir: Xserver and samba nixos
svn path=/nixos/trunk/; revision=8784
2007-05-28 14:09:04 +00:00
Eelco Dolstra 8cf1eceb0a * Allow multiple file systems to be mounted in stage 1 (i.e., from the
initrd).  This is useful if /nix (which is necessary for stage 2) is
  on a different file system than /.

svn path=/nixos/trunk/; revision=7862
2007-02-06 16:53:36 +00:00
Eelco Dolstra cb10364838 * Use a diet udev in boot stage 1 to create the device nodes in /dev.
svn path=/nixos/trunk/; revision=7608
2007-01-10 12:42:28 +00:00
Eelco Dolstra 11e4d36db1 * Look for the CD-ROM in /sys/block, not /sys/devices. Don't look for
a "media" file since SCSI CD-ROM drives don't have it (and
  supposedly it's going away in IDE too).
* Create the device node automatically from the "dev" file in
  /sys/block/$bla.  

svn path=/nixos/trunk/; revision=7473
2006-12-23 01:16:39 +00:00
Eelco Dolstra f9d67afce0 * Options for overriding the set of kernel modules in the initrd.
svn path=/nixos/trunk/; revision=7432
2006-12-19 22:12:44 +00:00
Eelco Dolstra acf656125c * Lots of refactoring.
* Clear the PATH in most scripts.  This helps to ensure purity.

svn path=/nixos/trunk/; revision=7299
2006-12-10 22:29:44 +00:00
Eelco Dolstra 5c89e891df * Refactoring.
svn path=/nixos/trunk/; revision=7156
2006-11-28 10:45:21 +00:00
Renamed from boot-stage-1-init.sh (Browse further)