Commit Graph

539 Commits

Author SHA1 Message Date
Simo Leone
99ed5349b3 Fix CD-ROM Ejection
Fixes FS#10206
Setting the drive to autoeject causes
udevadm trigger to always eject the device
if it isn't mounted.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-06-21 19:06:42 -05:00
Simo Leone
a53cf77e3f Fix USB image corruption issues
Fixes FS#10614
sfdisk and the kernel cannot accurately detect
disk geometry from the disk image file, causing
automatic partition size calculations to fail.
The whole partition table is now calculated
in mkusbimg rather than letting sfdisk do it.

mkusbimg doesn't directly use losetup anymore
either, eliminating some code.

This also fixes issues with needing to make the
partition much larger than necessary, so image
size has been minimized.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-06-21 19:04:34 -05:00
Simo Leone
7315f8459d One more ide-cd fix
I missed a hook last time, so it was producing some
scary, but harmless output.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-06-20 00:17:03 -05:00
Simo Leone
a23e702eb6 Changed ide-cd to ide-cd_mod
Damnit 2.6.25

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-05-17 02:12:38 -05:00
Simo Leone
e33c687400 modprobe loop module
udev doesn't modprobe loop by itself so we have
to ask it nicely.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-05-17 00:40:10 -05:00
Simo Leone
441d989243 Added loop module to archiso hook
Loopbacks became a module in 2.6.25.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-05-17 00:29:19 -05:00
Simo Leone
83968fd697 Removed backticks
Yes.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-04-15 17:56:19 -05:00
Simo Leone
397bf04bae Add USB modules to boot-cd hooks
This should allow the disk to find itself
on external CD-ROM drives.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-04-02 20:29:01 -05:00
Simo Leone
6f4eca9a8c Use -noappend on all mksquashfs calls
Otherwise unexpected things can happen.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-04-02 02:25:34 -05:00
Simo Leone
a24b40c5d2 Wait for USB devices to settle before scanning
We weren't able to pick up usb devices at all,
because the kernel takes its sweet time realizing
that they're there.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-04-02 02:23:00 -05:00
Simo Leone
c265757045 Changed mkusbimg size to 25% over rootsize
This is plenty to compensate for filesystem
overhead. Cutting the size too close to
the minimum makes the image unbootable.
No idea why.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-30 04:00:32 -05:00
Simo Leone
378bf136e2 Integrate mkusbimg
Added to makefile and mkarchiso.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-30 03:26:58 -05:00
Simo Leone
97ed563f00 Added USB image creation script
mkusbimg creates bootable raw disk images
that can be written to USB devices. It's
intended to be on the same functional level
as mkisofs.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-30 02:49:47 -05:00
Simo Leone
a278dabe55 Removed kernel26 reference
Better not to hardcode in case someone
wants to use another kernel.

Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-30 01:27:54 -05:00
Dan McGee
36ed0cce2f Update boot-usb to use dirs similar to boot-cd
Signed-off-by: Dan McGee <dan@archlinux.org>
2008-03-29 15:54:57 -05:00
Dan McGee
ec9fdb371b Cleanups and bugfixes
* /etc/copyright was all sorts of messed up, it was looked for on the host
  system instead of the ISO, etc. Just kill it.
* Remove extra default-config code. We want to implement it as an overlay
  and not copy it into our pristine ISO root.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-27 16:31:57 -05:00
Dan McGee
8a198aa131 Print a message when copytoram is being used
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Simo Leone <simo@archlinux.org>
2008-03-27 16:31:21 -05:00
Dan McGee
c79d2147d0 Add a few more things to the Makefile to get it ready for release
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-30 21:27:45 -05:00
Simo Leone
c1b42e82b9 Fix install rule in makefile
Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-25 15:08:16 -05:00
Dan McGee
9b6719d86a Remove tmpfs at /tmp in default fstab, as our whole system is a tmpfs
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 23:04:15 -05:00
Dan McGee
56fceb1c11 testiso: use 256 megs of RAM
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 21:18:24 -05:00
Dan McGee
1f1bbd1716 Update rc.conf a bit more
* Remove lo interface as we don't need it anymore with the new initscripts
* Make clock configurable on the command line
* Remove unnecessary stuff

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 21:07:40 -05:00
Dan McGee
4af987fe10 Add some pregenerated locales to the default config
This adds a locale.gen file with the default generated locales uncommented,
and a prebuilt locale-archive containing the following locales:
$ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 20:33:23 -05:00
Simo Leone
cd4b603584 Remove dupe code for mounting base image
Also improved variable naming.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 20:20:59 -05:00
Simo Leone
adbe44f229 Make _mnt_squashfs more generic
No longer assume the image is in the addons
directory.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 20:17:24 -05:00
Simo Leone
9729512abd rc.conf defaults to localtime instead of UTC
Most user's systems will have localtime over UTC,
or at least in a liveCD situation it's a better
assumption.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 20:14:41 -05:00
Simo Leone
8a5b9225e9 Fixed addon config parsing
The check for a comment line wasn't actually working
before. Shell quoting ftl.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 15:10:42 -05:00
Simo Leone
34e1d6b5dc Make default-config an overlay
This allows the root image to remain a [mostly] pristine
image, and turns default liveCD configurations into an
overlay, rather than copying them into the root image.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 02:05:32 -05:00
Simo Leone
0dfc0a36ca Functionalize addon mounting
Moved addon mounting code into functions.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 02:05:32 -05:00
Simo Leone
63f9dc1674 Added README with some documentation
Some rudimentary documentation that mkarchiso -h doesn't
quite cover. Poor humor comes free with the deal.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 02:05:32 -05:00
Simo Leone
4b62e90475 Make usage message appear before root user check
This allows joe user to see the usage message without
having to specify -h. Trivial.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-24 02:05:32 -05:00
Dan McGee
9a34024e57 Allow livecd to be developer friendly
We should clean up some stuff but not actually muddle with what is installed
by packages. Leave static libs if they were installed, and leave include
files so we can actually build a package from the live CD if we want to.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 02:05:32 -05:00
Dan McGee
e1d6dcec6b Fix line in sudoers so we can successfully sudo
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 02:05:32 -05:00
Dan McGee
2cde4b9187 Add basic uninstall target to Makefile
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-24 02:05:32 -05:00
Simo Leone
b21ecef676 Updated TODO
Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-16 23:49:30 -05:00
Simo Leone
a0a8c9ef09 Implement fstab-like addon config
For now all it handles is bind mounting and squashfs
images that have to overlay at the root. The config
file syntax is obviously borrowed from fstab. This
is far from final, much of it could use some cleanup.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-16 23:49:30 -05:00
Simo Leone
413b2fd552 Implemented a simple addon mechanism
If asked to do so, mkarchiso simply copies a
directory full of addons to the iso root.

On boot, after union-mounting /real_root, the
archiso hook will look for and source an addon
config file. This file is a plain old bash
script, which makes it quite flexible. The addon
config should be written to take care of any
mounting that needs to be done, an example of
typical tasks is also included.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-16 23:38:05 -05:00
Dan McGee
47d1d2b0f7 Ensure the default config is copied into the ISO with correct perms
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-14 22:12:53 -05:00
Dan McGee
ef89b8a29f Make mkarchiso a bit more KISS
Remove the need for a configuration file. Some of the command line options
had to be switched up a bit in order to do this. Also simplify the package
list- only one package list is needed, not a directory, and additional
packages can be specified on the command line.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-14 22:07:19 -05:00
Dan McGee
2f10bc9b79 Add bin images to repo, and fix up the paths in GRUB
Add some of the bin images we say we have into the GIT repo so that our
ISO actually builds with these files. All latest versions were fetched:

* diag2.img: 19-Feb-2007 (no version number)
* memdisk.bin: built from syslinux-3.52
* memtest86+: 1.70
* x86_test: 0.10a

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-14 11:38:31 -05:00
Dan McGee
9cfc199c95 Update TODO
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-14 11:38:09 -05:00
Dan McGee
e686cf5dcf First attempt at a makefile for the archiso package
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-14 11:37:59 -05:00
Dan McGee
eb3e9b28da Return mkarchiso to being quiet
Add some output redirects again to make the script a bit more silent. Full
verbosity can still be had with the -v option.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-10 23:05:26 -05:00
Dan McGee
e5fb50c573 Fix issue where stock Arch initscripts were unable to find /
If we add a root entry in our default fstab, we will be able to remount
root without issues in the initscripts, even if we don't have access to
the original mount locations and such.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-10 23:05:26 -05:00
Dan McGee
bc8ec134e1 Slight updates to initcpio hooks
* Get rid of unnecessary trailing slash on BOOT_MOUNT variable
* Fix -eq/= mixup- we are comparing strings, not numbers
* Don't unmount /dev, as it was never mounted

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-10 23:05:26 -05:00
Dan McGee
34c7ce7193 Ew, DOS line endings. Get rid of them.
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-10 23:05:26 -05:00
Dan McGee
77fd769e5c Add some groups that were missing from the default config
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-10 23:05:26 -05:00
Simo Leone
5c7046f2fc Can now break out of archiso hook into dash
Usually initcpio's init takes care of this, but
it never executes that far, so this is copypasta.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-10 22:42:50 -05:00
Dan McGee
8ada60b175 Update vim modelines on most files
Move the vim modelines to the bottom, and add the tab settings.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-10 22:34:28 -05:00
Dan McGee
fccb39dcd8 A bunch of those first-glance type updates
Some new eyes on the code, and finding some new things to fix up. A lot of
documentation type stuff with some code commenting. Make the message and
echo stuff a bit more consistant. Move the UID check later so that we can
see help as a normal user. Other small fixups.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Simo Leone <simo@archlinux.org>
2007-10-10 21:43:44 -05:00