summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-19 17:21:43 +0000
committerMatt Wilson <msw@redhat.com>2001-03-19 17:21:43 +0000
commitac0af73199715e6ca624cc8699cb9f0633bef90c (patch)
treeba4564ad67a03e743dc7c841f024252348328314 /loader
parentcbd1277b506fc22140c2235f67b85118188d1187 (diff)
downloadanaconda-ac0af73199715e6ca624cc8699cb9f0633bef90c.tar.gz
anaconda-ac0af73199715e6ca624cc8699cb9f0633bef90c.tar.xz
anaconda-ac0af73199715e6ca624cc8699cb9f0633bef90c.zip
load cramfs and mount stage2 via cramfs (for Alpha -- we need disk space!
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c
index f40a2d5ef..8213b32a8 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -721,10 +721,13 @@ static int mountLoopback(char * fsystem, char * mntpoint, char * device) {
0, NULL, NULL)) {
if (doPwMount("/tmp/loop", mntpoint, "ext2", 1,
0, NULL, NULL)) {
+ if (doPwMount("/tmp/loop", mntpoint, "cramfs", 1,
+ 0, NULL, NULL)) {
- logMessage("failed to mount loop: %s",
- strerror(errno));
- return LOADER_ERROR;
+ logMessage("failed to mount loop: %s",
+ strerror(errno));
+ return LOADER_ERROR;
+ }
}
}
@@ -2564,6 +2567,8 @@ int main(int argc, char ** argv) {
modDeps = mlNewDeps();
mlLoadDeps(&modDeps, "/modules/modules.dep");
+ mlLoadModule("cramfs", NULL, modLoaded, modDeps, NULL, modInfo, flags);
+
if (!continuing) {
ideSetup(modLoaded, modDeps, modInfo, flags, &kd);
scsiSetup(modLoaded, modDeps, modInfo, flags, &kd);